wpseek.com
WordPress开发者和主题制作者的搜索引擎



is_plugin_inactive › WordPress Function

Since3.1.0
已弃用n/a
is_plugin_inactive ( $plugin )
参数:
  • (string) $plugin Path to the plugin file relative to the plugins directory.
    Required: Yes
查看:
返回:
  • (bool) True if inactive. False if active.
定义在:
文档:

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 Conditional Tags} article in the Theme Developer Handbook.


源码

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