wp comment meta <command>

Adds, updates, deletes, and lists comment custom fields.

EXAMPLES 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.

Top ↑

SUBCOMMANDS 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.

Command documentation is regenerated at every release. To add or update an example, please submit a pull request against the corresponding part of the codebase.