wp site option get

Gets a site option.

wp site option get <key> [--format=<format>]

Options

<key>

Key for the site option.

[--format=<format>]

Get value in a particular format. [Default: var_export]

Options:
  • var_export
  • json
  • yaml

Examples

# Get site upload filetypes $ wp site option get upload_filetypes jpg jpeg png gif mov avi mpg