Function: tcp the price

Description

Displays or returns the price of the current product. This tag must be within The Loop.

Usage

<?php tcp_the_price( $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 (true) or return it for use in PHP (false). Defaults to true.

Examples

Related

tcp_get_the_price

tcp_get_the_price | tcp_format_the_price