WP CLI说明文档

wp theme auto-updates

命令概述

用于管理 WordPress 主题的自动更新功能,支持启用、禁用以及查看当前自动更新状态。

适合在需要批量控制主题更新策略或检查特定主题自动更新配置时使用。

参数列表

参数 说明
enable 启用指定主题的自动更新。
disable 禁用指定主题的自动更新。
status 查看指定主题的自动更新状态。

常用示例

启用主题自动更新

$ wp theme auto-updates enable twentysixteen

禁用主题自动更新

$ wp theme auto-updates disable twentysixteen

查看主题自动更新状态

$ wp theme auto-updates status twentysixteen