mirror of
https://ghproxy.net/https://github.com/wp-cli/handbook.git
synced 2026-07-27 12:47:14 +08:00
25 lines
613 B
Markdown
25 lines
613 B
Markdown
# wp comment meta
|
|
|
|
Adds, updates, deletes, and lists comment custom fields.
|
|
|
|
### EXAMPLES
|
|
|
|
# Set comment meta
|
|
$ wp comment meta set 123 description "Mary is a WordPress developer."
|
|
Success: Updated custom field 'description'.
|
|
|
|
# Get comment meta
|
|
$ wp comment meta get 123 description
|
|
Mary is a WordPress developer.
|
|
|
|
# Update comment meta
|
|
$ wp comment meta update 123 description "Mary is an awesome WordPress developer."
|
|
Success: Updated custom field 'description'.
|
|
|
|
# Delete comment meta
|
|
$ wp comment meta delete 123 description
|
|
Success: Deleted custom field.
|
|
|
|
|
|
|
|
|