Filter: tcp get the price label

Description

Allows to change the price label. The price label is the text where customers can read the product prices. This price is changed when the product has options. If this case the price label shows the minimum and maximum prices.

Parameters

$label
(String) the price label (price + currency + options).
$post_id
(Number) Product id.
$price
(Number) Product price.

Example

Changing label

<?php
function my_tcp_get_the_price_label( $label, $post_id, $price ) {
	return $label + ' more data';
}
add_filter( 'tcp_get_the_price_label', 'my_tcp_get_the_price_label', 10, 3 ); ?>

Related

tcp_get_the_price_label

Change Log

Since 1.1.6