Function: tcp the weight

Description

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

Usage

<?php tcp_the_weight( $before, $after, $echo ); ?>

Parameters

$before 
(string) Text to place before the weight. Defaults to ''.
$after 
(string) Text to place after the weight. Defaults to ''.
$echo 
(Boolean) Display the weight (true) or return it for use in PHP (false). Defaults to true.

Examples

Related

tcp_get_the_weight