LLMS_Product::has_free_access_plan()
Determine if the product has at least one free access plan.
Return Return
(bool)
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 ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.25.2 | Unknown. |
3.0.0 | Introduced. |