wp network meta <command>

Gets, adds, updates, deletes, and lists network custom fields.

In this article

Examples

# Get a list of super-admins
$ wp network meta get 1 site_admins
array (
  0 => 'supervisor',
)

Subcommands

NameDescription
wp network meta add

Add a meta field.

wp network meta delete

Delete a meta field.

wp network meta get

Get meta field value.

wp network meta list

List all metadata associated with an object.

wp network meta patch

Update a nested value for a meta field.

wp network meta pluck

Get a nested value from a meta field.

wp network 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.