wp site option pluck

Gets a nested value from an option.

wp site option pluck <key> <key-path>... [--format=<format>]

Options

<key>

The option name.

<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