wp user meta pluck

Get a nested value from a meta field.

wp user meta pluck <id> <key> <key-path>... [--format=<format>]

Options

<id>

The ID of the object.

<key>

The name of the meta field to get.

<key-path>...

The name(s) of the keys within the value to locate the value to pluck.

[--format=<format>]

The output format of the value. [Default: plaintext]

Options:
  • plaintext
  • json