A WordPress-centric search engine for devs and theme authors



is_plugin_inactive ›

Since3.1.0
Deprecatedn/a
is_plugin_inactive ( $plugin )
Parameters:
  • (string) $plugin Path to the main plugin file from plugins directory.
    Required: Yes
See:
Returns:
  • (bool) True if inactive. False if active.
Defined at:
Codex:

Check whether the plugin is inactive.

Reverse of is_plugin_active(). Used as a callback.



Source

function is_plugin_inactive( $plugin ) {
	return ! is_plugin_active( $plugin );
}