Summery Summery

Determines whether the plugin is inactive.

Syntax Syntax

is_plugin_inactive( string $plugin )

Description 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.

Parameters Parameters


(string) (Required) Path to the plugin file relative to the plugins directory.

Return Return

(bool) True if inactive. False if active.

Source Source

File: wp-admin/includes/plugin.php

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


Changelog Changelog

Version Description
3.1.0 Introduced.

See also See also


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.