用于管理 WordPress 评论的元数据(comment meta),支持新增、读取、更新和删除操作。
适合在需要为评论附加自定义字段信息时使用,例如存储额外评分或用户备注。
| 参数 | 说明 |
|---|---|
set |
设置评论元数据 |
get |
获取评论元数据 |
update |
更新评论元数据 |
delete |
删除评论元数据 |
$ wp comment meta set 123 description "Mary is a WordPress developer."
$ wp comment meta get 123 description
$ wp comment meta update 123 description "Mary is an awesome WordPress developer."
$ wp comment meta delete 123 description