Description

Add the code to be able to delete product attributes through the products data store.

This also will delete all terms from the selected attribute.

For now, this should be marked as experimental/internal as we iterate on the API so that it is clear that this is incomplete and subject to change.

Delete

HTTP Request

DELETE /wp-json/wc/v3/products/attributes/<id>

Reference

https://woocommerce.github.io/woocommerce-rest-api-docs/#delete-a-product-attribute

Properties | Parameter | Type | Description | | --------- | -------- | -------- | | force | string | Required to be true, as resource does not support trashing. |

Acceptance criteria

  • [ ] Data store updates
  • [ ] Unit tests
  • [ ] Documentation with examples
0
© 2022 pullanswer.com - All rights reserved.