Description
Displays or returns the price label of the current product. This tag must be within The Loop.
The price label is for Simple products equal than tcp_the_price. For grouped products this functions returns the smallest and the biggest price from the products aggregated to the Grouped product.
Usage
<?php tcp_the_price_label( $before, $after, $echo); ?>
Parameters
- $before
- (string) Text to place before the price. Defaults to ''.
- $after
- (string) Text to place after the price. Defaults to ''.
- $echo
- (Boolean) Display the price label (true) or return it for use in PHP (false). Defaults to true.
Examples
Related
tcp_get_the_price_label | tcp_the_price | Filter: tcp_get_the_price_label