Wp wc product update

Uit De Vliegende Brigade
Naar navigatie springen Naar zoeken springen
$ wp help wc product update

NAME

  wp wc product update

DESCRIPTION

  Update an existing item.

SYNOPSIS

  wp wc product update <id> [--id=<id>] [--name=<name>] [--slug=<slug>] [--type=<type>] [--status=<status>]
  [--featured=<featured>] [--catalog_visibility=<catalog_visibility>] [--description=<description>]
  [--short_description=<short_description>] [--sku=<sku>] [--regular_price=<regular_price>]
  [--sale_price=<sale_price>] [--date_on_sale_from=<date_on_sale_from>]
  [--date_on_sale_from_gmt=<date_on_sale_from_gmt>] [--date_on_sale_to=<date_on_sale_to>]
  [--date_on_sale_to_gmt=<date_on_sale_to_gmt>] [--virtual=<virtual>] [--downloadable=<downloadable>]
  [--downloads=<downloads>] [--download_limit=<download_limit>] [--download_expiry=<download_expiry>]
  [--external_url=<external_url>] [--button_text=<button_text>] [--tax_status=<tax_status>] [--tax_class=<tax_class>]
  [--manage_stock=<manage_stock>] [--stock_quantity=<stock_quantity>] [--in_stock=<in_stock>]
  [--backorders=<backorders>] [--sold_individually=<sold_individually>] [--weight=<weight>]
  [--dimensions=<dimensions>] [--shipping_class=<shipping_class>] [--reviews_allowed=<reviews_allowed>]
  [--upsell_ids=<upsell_ids>] [--cross_sell_ids=<cross_sell_ids>] [--parent_id=<parent_id>]
  [--purchase_note=<purchase_note>] [--categories=<categories>] [--tags=<tags>] [--images=<images>]
  [--attributes=<attributes>] [--default_attributes=<default_attributes>] [--grouped_products=<grouped_products>]
  [--menu_order=<menu_order>] [--meta_data=<meta_data>] [--porcelain]

OPTIONS

  <id>
    The ID for the resource.

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

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

  [--slug=<slug>]
    Product slug.

  [--type=<type>]
    Product type.

  [--status=<status>]
    Product status (post status).

  [--featured=<featured>]
    Featured product.

  [--catalog_visibility=<catalog_visibility>]
    Catalog visibility.

  [--description=<description>]
    Product description.

  [--short_description=<short_description>]
    Product short description.

  [--sku=<sku>]
    Unique identifier.

  [--regular_price=<regular_price>]
    Product regular price.

  [--sale_price=<sale_price>]
    Product sale price.

  [--date_on_sale_from=<date_on_sale_from>]
    Start date of sale price, in the site's timezone.

  [--date_on_sale_from_gmt=<date_on_sale_from_gmt>]
    Start date of sale price, as GMT.

  [--date_on_sale_to=<date_on_sale_to>]
    End date of sale price, in the site's timezone.

  [--date_on_sale_to_gmt=<date_on_sale_to_gmt>]
    End date of sale price, as GMT.

 [--downloadable=<downloadable>]
    If the product is downloadable.

  [--downloads=<downloads>]
    List of downloadable files.

  [--download_limit=<download_limit>]
    Number of times downloadable files can be downloaded after purchase.

  [--download_expiry=<download_expiry>]
    Number of days until access to downloadable files expires.

  [--external_url=<external_url>]
    Product external URL. Only for external products.

  [--button_text=<button_text>]
    Product external button text. Only for external products.

  [--tax_status=<tax_status>]
    Tax status.

  [--tax_class=<tax_class>]
    Tax class.

  [--manage_stock=<manage_stock>]
    Stock management at product level.

  [--stock_quantity=<stock_quantity>]
    Stock quantity.

  [--in_stock=<in_stock>]
    Controls whether or not the product is listed as "in stock" or "out of stock" on the frontend.

  [--backorders=<backorders>]
    If managing stock, this controls if backorders are allowed.

  [--sold_individually=<sold_individually>]
    Allow one item to be bought in a single order.

  [--weight=<weight>]
    Product weight (g).

  [--dimensions=<dimensions>]
    Product dimensions.

  [--shipping_class=<shipping_class>]
    Shipping class slug.

  [--reviews_allowed=<reviews_allowed>]
    Allow reviews.

 [--upsell_ids=<upsell_ids>]
    List of up-sell products IDs.

  [--cross_sell_ids=<cross_sell_ids>]
    List of cross-sell products IDs.

  [--parent_id=<parent_id>]
    Product parent ID.

  [--purchase_note=<purchase_note>]
    Optional note to send the customer after purchase.

  [--categories=<categories>]
    List of categories.

  [--tags=<tags>]
    List of tags.

  [--images=<images>]
    List of images.

  [--attributes=<attributes>]
    List of attributes.

  [--default_attributes=<default_attributes>]
    Defaults variation attributes.

  [--grouped_products=<grouped_products>]
    List of grouped products ID.

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

  [--meta_data=<meta_data>]
    Meta data.

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

See also