LLMS_Access_Plan::has_trial()
Determine if the plan has a trial offer One-time payments can’t have a trial, so the plan must have a frequency greater than 0
Return Return
(boolean)
Source Source
File: includes/models/model.llms.access.plan.php
705 706 707 708 709 710 | $ret = false; if ( $this ->get( 'frequency' ) > 0 ) { $ret = llms_parse_bool( $this ->get( 'trial_offer' ) ); } return apply_filters( 'llms_plan_has_trial' , $ret , $this ); } |
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |