A customizable, open-source ecommerce platform built on WordPress. Build any commerce solution you can imagine.
Go to file
Tom Cafferkey ee84901ab8 AttributePicker: Set default values if they exist (https://github.com/woocommerce/woocommerce-blocks/pull/4815)
* Update API to add default boolean to attribute values and use this within the component to set the default attributes.

* Modify and add unit tests for isObject and getDefaultAttributes

* Sanitize attribute name to accommodate for custom attributes being default values.

* Comments for sanitized_attribute_name variable

* Remove second argument from getAttributes
2021-10-06 09:48:13 +01:00
plugins/woocommerce-blocks AttributePicker: Set default values if they exist (https://github.com/woocommerce/woocommerce-blocks/pull/4815) 2021-10-06 09:48:13 +01:00