用于管理 WordPress 术语的元数据(term meta),支持新增、读取、更新和删除操作。
适合在需要为分类、标签等术语附加自定义字段时使用。
| 参数 | 说明 |
|---|---|
<id> |
术语的 ID。 |
<key> |
元数据的键名。 |
[<value>] |
元数据的值(用于新增或更新)。 |
--format |
输出格式,可选值:table、json、csv、yaml。 |
$ wp term meta set 123 bio "Mary is a WordPress developer."
$ wp term meta get 123 bio
$ wp term meta update 123 bio "Mary is an awesome WordPress developer."
$ wp term meta delete 123 bio