用于检查指定插件是否已激活,返回退出码0表示激活,1表示未激活。
适合在脚本或自动化流程中判断插件状态时使用。
<plugin>
[--network]
$ wp plugin is-active hello $ echo $? 1