llms_template_product_not_purchasable( int $post_id = null )
Include template for products that aren’t purchasable
Parameters Parameters
- $post_id
-
(int) (Optional) WP Post ID of the product. Default is ID of the global $post.
Default value: null
Return Return
(void)
Source Source
File: includes/functions/llms.functions.templates.pricing.table.php
function llms_template_product_not_purchasable( $post_id = null ) {
$post_id = $post_id ? $post_id : get_the_ID();
$product = new LLMS_Product( $post_id );
llms_get_template(
'product/not-purchasable.php',
compact( 'product' )
);
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 3.38.0 | Introduced. |