c145783e0a
* renmove WC comment block * client routes * more fixes * moar search * getting there * by hand now * david beating goliath * mission accomplished * client filepath * save * got it * remove script * fixes * deal with package internal dep * remove webpack alias * fix webpack relative paths * remove commented rule * remove extra line * remove unused modules entry |
||
---|---|---|
.. | ||
marketing-coupons | ||
onboarding-homepage-notice | ||
onboarding-product-import-notice | ||
onboarding-product-notice | ||
onboarding-tax-notice | ||
print-shipping-label-banner | ||
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' ) );