LLMS_Helper_Add_On::get_license_status( bool $translate = false )
Determine the status of an addon’s license
Parameters Parameters
- $translate
-
(bool) (Optional) If true, returns the translated string for on-screen display.
Default value: false
Return Return
(string)
Source Source
File: libraries/lifterlms-helper/includes/models/class-llms-helper-add-on.php
public function get_license_status( $translate = false ) {
if ( ! $this->requires_license() ) {
$ret = 'none';
} else {
$ret = $this->is_licensed() ? 'license_active' : 'license_inactive';
}
return $translate ? $this->get_l10n( $ret ) : $ret;
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 3.2.1 | Use requires_license() instead of checking has_license prop directly. |
| 3.0.0 | Introduced. |