d11f50b5a3
* Remove empty state HTML * Add empty attribute when product has no attributes * Remove unused woocommerce_admin_meta_boxes.has_local_attributes * Remove unused toggle_add_global_attribute_layout * Remove unused button.add_attribute click handling (button doesn't exist anymore) * Fix positioning of Expand / Close * Remove unnecessary add-attribute-container div * Refactor attribute search selection handling * Remove empty attribute if adding an existing attribute * Update e2e test clicking of "Add new" attribute button * Update Tracks handling for "Add new" attribute button * Changelog * Fix action recorded when "Add new" button is clicked * Remove console.log statements * Allow propagation of click event on "Create value" button * Move Tracks wcadmin_product_attributes_buttons action: 'add_existing' to product-tracking TS * Make function names more descriptive. Add comment to clarify why event.preventDefault is used. |
||
---|---|---|
.. | ||
add-term-tracking | ||
attributes-tracking | ||
beta-features-tracking-modal | ||
category-tracking | ||
marketing-coupons | ||
navigation-opt-out | ||
onboarding-homepage-notice | ||
onboarding-load-sample-products-notice | ||
onboarding-product-import-notice | ||
onboarding-product-notice | ||
onboarding-tax-notice | ||
order-tracking | ||
payment-method-promotions | ||
print-shipping-label-banner | ||
product-category-metabox | ||
product-import-tracking | ||
product-tour | ||
product-tracking | ||
settings-tracking | ||
tags-tracking | ||
variable-product-tour | ||
wc-addons-tour | ||
README.md |
README.md
Scripts located in this directory are meant to be loaded on wp-admin pages outside the context of WooCommerce Admin, such as the post editor. Adding the script name to wpAdminScripts
in the Webpack config will automatically build these scripts.
Scripts must be manually enqueued with any necessary dependencies. For example, onboarding-homepage-notice
uses the WooCommerce navigation package:
wp_enqueue_script( 'onboarding-homepage-notice', Loader::get_url( 'wp-scripts/onboarding-homepage-notice.js' ), array( 'wc-navigation' ) );