LLMS_Product::has_free_access_plan()

Determine if the product has at least one free access plan.


Return Return

(bool)


Top ↑

Source Source

File: includes/models/model.llms.product.php

	public function has_free_access_plan() {

		/**
		 * Filter whether the product has free access plans.
		 *
		 * @since Unknown
		 * @since 3.37.17 Added the `$product` param.
		 *
		 * @param bool         $has_free_access_plan Whether the product `$product` has free access plans.
		 * @param LLMS_Product $product              The LLMS_Product instance.
		 */
		return apply_filters( 'llms_product_has_free_access_plan', ( 0 !== count( $this->get_access_plans( true ) ) ), $this );

	}


Top ↑

Changelog Changelog

Changelog
Version Description
3.25.2 Unknown.
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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