Function: tcp is downloadable

Description

Returns true if the product given or the current product is downloadable. In the last case this tag must be within The Loop.

Usage

<?php if ( tcp_is_downloadable( $post_id ) ) echo 'It is downloadable!'; ?>

Parameters

$post_id 
(Integer) The ID of the product you’d like to returns if it is downloadable. Defaults to the current product. In this case this tag must be within The Loop.

Examples

Related