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.
Subcommands
Name | Description |
---|---|
wp comment meta add | Add a meta field. |
wp comment meta delete | Delete a meta field. |
wp comment meta get | Get meta field value. |
wp comment meta list | List all metadata associated with an object. |
wp comment meta patch | Update a nested value for a meta field. |
wp comment meta pluck | Get a nested value from a meta field. |
wp comment meta update | Update a meta field. |