8ee74ede0e
* replace capitalized Woo.com with WooCommerce.com * replace http URLs * replace https URLs * replace developer.woo.com * add missing version in `@since` tag * unslash the HTTP_REFERER * WordPress.Security.ValidatedSanitizedInput.InputNotSanitized * add changelog file * add more changelog files * address linter errors * address more linter errors * fix test * more linter errors |
||
---|---|---|
.. | ||
add-term-tracking | ||
attributes-tracking | ||
beta-features-tracking-modal | ||
category-tracking | ||
command-palette | ||
command-palette-analytics | ||
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 | ||
shipping-settings-region-picker | ||
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' ) );