WP CLI说明文档

wp language plugin

命令概述

用于管理 WordPress 插件的语言包,支持安装、卸载和列出翻译包状态。

适合在需要为特定插件添加或移除多语言支持时使用。

参数列表

参数 说明
install 安装指定插件的语言包
uninstall 卸载指定插件的语言包
list 列出指定插件的语言包
--status 按状态过滤语言包,如 installed

常用示例

安装荷兰语语言包

$ wp language plugin install hello-dolly nl_NL

卸载荷兰语语言包

$ wp language plugin uninstall hello-dolly nl_NL

列出已安装的语言包

$ wp language plugin list hello-dolly --status=installed