Adds, updates, deletes, and lists term custom fields.
EXAMPLES EXAMPLES
# Set term meta
$ wp term meta set 123 bio "Mary is a WordPress developer."
Success: Updated custom field 'bio'.
# Get term meta
$ wp term meta get 123 bio
Mary is a WordPress developer.
# Update term meta
$ wp term meta update 123 bio "Mary is an awesome WordPress developer."
Success: Updated custom field 'bio'.
# Delete term meta
$ wp term meta delete 123 bio
Success: Deleted custom field.
SUBCOMMANDS SUBCOMMANDS
Name | Description |
---|---|
wp term meta add | Add a meta field. |
wp term meta delete | Delete a meta field. |
wp term meta get | Get meta field value. |
wp term meta list | List all metadata associated with an object. |
wp term meta patch | Update a nested value for a meta field. |
wp term meta pluck | Get a nested value from a meta field. |
wp term 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.