is_plugin_inactive( string $plugin )

Check whether the plugin is inactive.


Description Description

Reverse of is_plugin_active(). Used as a callback.


Parameters Parameters

$plugin

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


Top ↑

Return Return

(bool) True if inactive. False if active.


Top ↑

Source Source

File: wp-admin/includes/plugin.php

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

Top ↑

Changelog Changelog

Changelog
Version Description
3.1.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.