is_plugin_inactive() │ WP 3.1.0

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.

Хуков нет.

Возвращает

bool. True if inactive. False if active.

Использование

is_plugin_inactive( $plugin );
$plugin(строка) (обязательный)
Path to the plugin file relative to the plugins directory.

Заметки

Смотрите: is_plugin_active()

Список изменений

С версии 3.1.0 Введена.

Код is_plugin_inactive() WP 7.1.4

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