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
$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. |