函数原型
is_plugin_inactive( string $plugin ): bool
函数描述
Determines whether the plugin is inactive.
是否弃用
未弃用
函数参数
-
$plugin
string
Required - Path to the plugin file relative to the plugins directory.
函数返回值
bool True if inactive. False if active.
函数位置
File: wp-admin/includes/plugin.php.
函数源码
<?php $active = is_plugin_inactive( $plugin ); ?>源码链接
变更日志
| Version | Description |
|---|---|
| 3.1.0 | Introduced. |

