LLMS_Add_On::is_installed()
Determine if the add-on is currently installed
Return Return
(bool)
Source Source
File: includes/models/model.llms.add-on.php
}
/**
* Determines if the add-on is installable
*
* @since 3.22.0
* @since 3.22.1 Unknown.
* @since 4.21.3 Use strict comparison for `in_array()`.
*
* @return boolean
*/
public function is_installable() {
return ( $this->get( 'update_file' ) && in_array( $this->get_type(), array( 'plugin', 'theme' ), true ) );
}
/**
* Determine if the add-on is currently installed
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 4.21.3 | Use strict comparison for in_array(). |
| 3.22.0 | Introduced. |