Wp term get (WP-CLI)

Uit De Vliegende Brigade
Naar navigatie springen Naar zoeken springen
$ wp help term get

  wp term get

DESCRIPTION

  Gets details about a term.

SYNOPSIS

  wp term get <taxonomy> <term> [--by=<field>] [--field=<field>] [--fields=<fields>] [--format=<format>]

OPTIONS

  <taxonomy>
    Taxonomy of the term to get

  <term>
    ID or slug of the term to get

  [--by=<field>]
    Explicitly handle the term value as a slug or id.
    ---
    default: id
    options:
      - slug
      - id
    ---

  [--field=<field>]
    Instead of returning the whole term, returns the value of a single field.

  [--fields=<fields>]
    Limit the output to specific fields. Defaults to all fields.

  [--format=<format>]
    Render output in a particular format.
    ---
    default: table
    options:
      - table
      - csv
      - json
      - yaml
    ---