Wp wc product attribute term update: verschil tussen versies
Naar navigatie springen
Naar zoeken springen
(Nieuwe pagina aangemaakt met '<pre> wp wc product_attribute_term update usage: wp wc product_attribute_term update <attribute_id> <id> [--id=<id>] [--attribute_id=<attribute_id>] [--name=<name...') |
|||
(4 tussenliggende versies door dezelfde gebruiker niet weergegeven) | |||
Regel 1: | Regel 1: | ||
+ | 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: | ||
+ | |||
<pre> | <pre> | ||
− | wp wc product_attribute_term update | + | $ 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>] | |
− | [--attribute_id=<attribute_id>] [--name=<name>] [--slug=<slug>] | + | Unique identifier for the resource. |
− | [--description=<description>] [--menu_order=<menu_order>] [--porcelain] | + | |
+ | [--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. | ||
</pre> | </pre> | ||
− | + | == Example == | |
Attribuut-taxonomie nummer 29, is elders getoond. 45244 is het id van de individuele term. Blijkbaar moet je beide id's geven. | Attribuut-taxonomie nummer 29, is elders getoond. 45244 is het id van de individuele term. Blijkbaar moet je beide id's geven. | ||
<pre> | <pre> | ||
− | $ wp wc product_attribute_term update 29 45244 --description="All | + | $ wp wc product_attribute_term update 29 45244 --description="All widgets for alternators" --user=4 |
− | |||
Success: Updated product_attribute_term 45244. | Success: Updated product_attribute_term 45244. | ||
</pre> | </pre> | ||
+ | |||
+ | == See also == |
Huidige versie van 18 okt 2022 om 14:44
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.