用于检查指定主题是否处于激活状态,返回退出码0表示激活,1表示未激活。
适合在脚本或自动化流程中判断主题状态时使用。
<theme>
$ wp theme is-active twentyfifteen $ echo $? 1