Determines whether the plugin is inactive.
Description
Reverse of is_plugin_active() . Used as a callback.
For more information on this and similar theme functions, check out the Conditional Tags article in the Theme Developer Handbook.
See also
Parameters
$plugin
stringrequired- Path to the plugin file relative to the plugins directory.
Source
function is_plugin_inactive( $plugin ) {
return ! is_plugin_active( $plugin );
}
Changelog
Version | Description |
---|---|
3.1.0 | Introduced. |
Example
Notice that this function is not available at all times. Using it in your plugin’s main file will result in a fatal error.