LLMS_Add_On::get_status( bool $translate = false )
Get the addon’s status
Parameters Parameters
- $translate
-
(bool) (Optional) If
true
, translates the status for on-screen display.Default value: false
Return Return
(string)
Source Source
File: includes/models/model.llms.add-on.php
public function get_status( $translate = false ) { if ( ! $this->is_installable() ) { $ret = 'none'; } elseif ( $this->is_installed() ) { $ret = $this->is_active() ? 'active' : 'inactive'; } else { $ret = 'uninstalled'; } if ( $translate ) { $ret = $this->get_l10n( $ret ); } return $ret; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.22.0 | Introduced. |