Description
Returns the sku 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_sku( $post_id ); ?>
Parameters
- $post_id
- (Integer) The ID of the product you’d like to returns its sku. Defaults to the current product. In this case this tag must be within The Loop.