is_plugin_inactive()
Determines whether the plugin is inactive.
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.
No Hooks.
Return
true|false
. True if inactive. False if active.
Usage
is_plugin_inactive( $plugin );
- $plugin(string) (required)
- Path to the plugin file relative to the plugins directory.
Notes
- See: is_plugin_active()
Changelog
Since 3.1.0 | Introduced. |
is_plugin_inactive() is plugin inactive code WP 6.5.2
function is_plugin_inactive( $plugin ) { return ! is_plugin_active( $plugin ); }