lifterlms_template_pricing_table( $post_id = null )


Description Description


Source Source

File: includes/functions/llms.functions.templates.pricing.table.php

	function lifterlms_template_pricing_table( $post_id = null ) {

		$post_id = $post_id ? $post_id : get_the_ID();

		$product = new LLMS_Product( $post_id );

		$is_enrolled = llms_is_user_enrolled( get_current_user_id(), $product->get( 'id' ) );
		$purchaseable = $product->is_purchasable();
		$has_free = $product->has_free_access_plan();

		llms_get_template(
			'product/pricing-table.php',
			compact( 'product', 'is_enrolled', 'purchaseable', 'has_free' )
		);

	}


Top ↑

User Contributed Notes User Contributed Notes

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





Permalink: