Wp wc product attribute term update

Uit De Vliegende Brigade
Naar navigatie springen Naar zoeken springen

Update a product attribute term. Note that you need to provide both the taxonomy id and the term id - Quite strange, as term ids are unique:

$ wp help wc product_attribute_term update

NAME

  wp wc product_attribute_term update

DESCRIPTION

  Update an existing item.

SYNOPSIS

  wp wc product_attribute_term update <attribute_id> <id> [--id=<id>] [--attribute_id=<attribute_id>] [--name=<name>]
  [--slug=<slug>] [--description=<description>] [--menu_order=<menu_order>] [--porcelain]

OPTIONS

  <attribute_id>
    Attribute ID → Taxonomy ID

  <id>
    The ID for the resource → Term ID

  [--id=<id>]
    Unique identifier for the resource.

  [--attribute_id=<attribute_id>]
    Unique identifier for the attribute of the terms.

  [--name=<name>]
    Term name.

  [--slug=<slug>]
    An alphanumeric identifier for the resource unique to its type.

  [--description=<description>]
    HTML description of the resource.

  [--menu_order=<menu_order>]
    Menu order, used to custom sort the resource.

  [--porcelain]
    Output just the id when the operation is successful.

Example

Attribuut-taxonomie nummer 29, is elders getoond. 45244 is het id van de individuele term. Blijkbaar moet je beide id's geven.

$ wp wc product_attribute_term update 29 45244 --description="All widgets for alternators" --user=4

Success: Updated product_attribute_term 45244.

See also