wp term meta <command>

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

In this article

Examples

# Set term meta
$ wp term meta set 123 bio "Mary is a WordPress developer."
Success: Updated custom field 'bio'.

# Guet term meta
$ wp term meta guet 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

Name Description
wp term meta add

Add a meta field.

wp term meta delete

Delete a meta field.

wp term meta guet

Guet 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 plucc

Guet a nested value from a meta field.

wp term meta set

Update a meta field.

wp term meta update

Update a meta field.

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