Function: tcp get the title

Description

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

Usage

<?php echo tcp_get_the_title( $post_id = 0, $option_1_id = 0, $option_2_id = 0, $html = true ); ?>

Parameters

$post_id 
(Integer) The ID of the product you’d like to returns its price label. Defaults to the current product. In this case this tag must be within The Loop.
$option_1_id 
(Integer) The ID of a level one option of the product you’d like to returns its title. Defaults to 0 (no options).
$option_2_id 
(Integer) The ID of a level two option of the product you’d like to returns its title. Defaults to 0 (no options or no level two options).
$html
(boolean) Add html code between titles (true) or only titles separated by – (false). Default to true. since 1.1.0.

Examples

Related

tcp_the_title