Function: tcp get the price

Description

Returns the price of the given product or the current product. In the last case this tag must be within The Loop.

Usage

<?php echo tcp_get_the_price( $post_id ); ?>

Parameters

$post_id
(Integer) The ID of the product you’d like to returns its price. Defaults to the current product. In this case this tag must be within The Loop.
$apply_filters
(Boolean, true by default) If this param is set to true the function will apply filters. Usually, only in admin panels must be set to false.

Examples

Change Log

Since 1.0.0
Since 1.2.7, new param $apply_filters

Related

tcp_the_price | tcp_format_the_price | tcp_get_the_tax