LLMS_Access_Plan::get_expiration_details()
Get a sentence explaining plan expiration details
Return Return
(string)
Source Source
File: includes/models/model.llms.access.plan.php
$ret = ''; $expiration = $this->get( 'access_expiration' ); if ( 'limited-date' === $expiration ) { $ret = sprintf( _x( 'access until %s', 'Access expiration date', 'lifterlms' ), $this->get_date( 'access_expires' ) ); } elseif ( 'limited-period' === $expiration ) { $ret = sprintf( _x( '%1$d %2$s of access', 'Access period description', 'lifterlms' ), $this->get( 'access_length' ), $this->get_access_period_name() ); } return apply_filters( 'llms_get_product_expiration_details', $ret, $this ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |