wp site meta

EXAMPLES EXAMPLES

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

# Get site meta
$ wp site meta get 123 bio
Mary is a WordPress developer.

# Update site meta
$ wp site meta update 123 bio "Mary is an awesome WordPress developer."
Success: Updated custom field 'bio'.

# Delete site meta
$ wp site meta delete 123 bio
Success: Deleted custom field.

Top ↑

SUBCOMMANDS SUBCOMMANDS

Name Description
wp site meta add

Add a meta field.

wp site meta delete

Delete a meta field.

wp site meta get

Get meta field value.

wp site meta list

List all metadata associated with an object.

wp site meta patch

Update a nested value for a meta field.

wp site meta pluck

Get a nested value from a meta field.

wp site meta update

Update a meta field.