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


Top ↑

Return Return

(void)


Top ↑

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' )
		);

	}


Top ↑

Changelog Changelog

Changelog
Version Description
3.38.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.