wp user meta get

Gets meta field value.

wp user meta get <user> <key> [--format=<format>]

Options

<user>

The user login, user email, or user ID of the user to get metadata for.

<key>

The metadata key.

[--format=<format>]

Render output in a particular format. [Default: table]

Options:
  • table
  • csv
  • json
  • yaml

Examples

# Get user meta $ wp user meta get 123 bio Mary is an WordPress developer. # Get the primary site of a user (for multisite) $ wp user meta get 2 primary_blog 3