LLMS_Access_Plan::get_trial_details()
Get a sentence explaining the plan’s trial offer
Return Return
(string)
Source Source
File: includes/models/model.llms.access.plan.php
$details = ''; if ( $this->has_trial() ) { $length = $this->get( 'trial_length' ); $period = $this->get( 'trial_period' ); $details = sprintf( _x( 'for %1$d %2$s', 'trial offer description', 'lifterlms' ), $length, $this->get_access_period_name( $period, $length ) ); } return apply_filters( 'llms_get_product_trial_details', $details, $this ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |