a67b7df26f
* Refactor method `addProductAttributesTracks` # Conflicts: # plugins/woocommerce-admin/client/wp-admin-scripts/product-tracking/shared.ts * Add changelog * Record remove attribute Tracks event # Conflicts: # plugins/woocommerce/client/legacy/js/admin/meta-boxes-product.js * Record `used for variations` and `visible on product page` events * Record `used for variations` and `visible on product page` events * Fix js error * Remove not used code * Refactor `add_existing` attribute recording * Fix event action * Refactor `attachEventListenerToParentForChildren` --------- Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com> |
||
---|---|---|
.. | ||
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-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 neccessary 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' ) );