Checks whether this module is active.
Description
See also
Return
(bool) True if the module is active, false otherwise.
Source
File: src/modules/module.php
public function is_active() { $options = $this->manager()->options()->get( 'general_settings', array() ); if ( isset( $options['modules'] ) && is_array( $options['modules'] ) ) { return in_array( $this->slug, $options['modules'], true ); } return true; }
Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |