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 plugin file relative to the plugins directory.
    Required: Yes
See:
Returns:
  • (bool) True if inactive. False if active.
Defined at:
Codex:

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 {@link https://developer.wordpress.org/themes/basics/conditional-tags/ Conditional Tags} article in the Theme Developer Handbook.



Source

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