PHP Class Comment_Meta_Command, wp-cli
## 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.
Show file
Open project: wp-cli/wp-cli
Protected Properties
Protected Methods
Method |
Description |
|
check_object_id ( $object_id ) |
Check that the comment ID exists |
|
Method Details
check_object_id()
protected method
Check that the comment ID exists
Property Details