LLMS_Access_Plan::has_availability_restrictions()
Determine if the plan has availability restrictions
Description Description
Related product must be a COURSE. Availability must be set to "members" and at least one membership must be selected.
Return Return
(boolean)
Source Source
File: includes/models/model.llms.access.plan.php
return ( 'course' === $this->get_product_type() && 'members' === $this->get( 'availability' ) && $this->get_array( 'availability_restrictions' ) ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |