woocommerce/plugins/woocommerce-admin/client/wp-admin-scripts
Vishnu Gopal 411d9ae78c
Add subscribe notices for products without subscription (#51060)
- Add a new notice to the plugins list for products used without subscriptions reminding them to purchase.
- Remove notices for expired and expiring subscriptions from WooCommerce settings screens.
- Change link for subscribe and renew to add the product directly to cart.

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-09-13 10:33:54 +05:30
..
add-term-tracking Add additional global attributes and local attributes information when saving product attributes (#36858) 2023-02-20 23:55:01 +01:00
attributes-tracking Add additional global attributes and local attributes information when saving product attributes (#36858) 2023-02-20 23:55:01 +01:00
beta-features-tracking-modal fix: wcadmin react18 createroot shipping settings, payment method, wc beta tester (#48835) 2024-07-29 21:30:03 +08:00
category-tracking Add initial tracking for categories, tags, and attribute product pages (#33118) 2022-05-30 13:14:25 -03:00
command-palette Prevent Command Palette scripts to enqueue unnecessary scripts in the editor (#43221) 2024-01-03 18:07:43 +01:00
command-palette-analytics Prevent Command Palette scripts to enqueue unnecessary scripts in the editor (#43221) 2024-01-03 18:07:43 +01:00
marketing-coupons fix: wcadmin react18 createroot marketing coupons (#48832) 2024-08-09 21:13:56 +08:00
onboarding-homepage-notice fix: replaced apostrophes for WooCommerce Admin JS strings in Homescreen & Core Profiler (#50776) 2024-08-20 17:13:17 +08:00
onboarding-load-sample-products-notice Set up i18n-text-domain rule and fix missing text domain (#33780) 2022-07-08 18:37:30 +08:00
onboarding-product-import-notice Codemod to change i18n text domain from 'woocommerce-admin' to 'woocommerce' in WCA Client 2022-04-01 11:41:32 +08:00
onboarding-product-notice Codemod to change i18n text domain from 'woocommerce-admin' to 'woocommerce' in WCA Client 2022-04-01 11:41:32 +08:00
onboarding-tax-notice fix: replaced apostrophes for WooCommerce Admin JS strings in Homescreen & Core Profiler (#50776) 2024-08-20 17:13:17 +08:00
order-tracking Update tracks events hooks for HPOS (#42879) 2023-12-29 08:46:59 +00:00
payment-method-promotions fix: wcadmin react18 createroot shipping settings, payment method, wc beta tester (#48835) 2024-07-29 21:30:03 +08:00
print-shipping-label-banner Update woocommerce shipping promo banner [wc-shipping-188] (#50970) 2024-09-02 14:23:52 +02:00
product-category-metabox Use createRoot in classic product editor cases (#48834) 2024-07-04 05:38:19 -03:00
product-import-tracking Add components to @woocommerce/customer-effort-score (#37112) 2023-03-14 12:16:19 -04:00
product-tour Use createRoot in classic product editor cases (#48834) 2024-07-04 05:38:19 -03:00
product-tracking Add unit tests for some tracks in product editor (#48245) 2024-06-10 23:05:20 +08:00
settings-tracking Add components to @woocommerce/customer-effort-score (#37112) 2023-03-14 12:16:19 -04:00
shipping-settings-region-picker fix: shipping region zone decode html entities (#50694) 2024-08-16 09:42:08 +08:00
tags-tracking Add initial tracking for categories, tags, and attribute product pages (#33118) 2022-05-30 13:14:25 -03:00
variable-product-tour Use createRoot in classic product editor cases (#48834) 2024-07-04 05:38:19 -03:00
wc-addons-tour fix: wcadmin react18 createroot wc addon tour (#48833) 2024-08-19 12:52:24 +01:00
woo-connect-notice Tracks event for WooCommerce.com connect notice (#47003) 2024-05-13 13:45:43 +07:00
woo-enable-autorenew Display a notice for expired/expiring subscriptions along with a plugin update message. (#47076) 2024-05-20 03:06:03 +00:00
woo-plugin-update-connect-notice Tracks event for WooCommerce.com connect notice (#47003) 2024-05-13 13:45:43 +07:00
woo-product-usage-notice Fix wcadmin-product-usage-notice-modal react18 createroot (#50765) 2024-08-20 11:50:26 +07:00
woo-purchase-subscription Add subscribe notices for products without subscription (#51060) 2024-09-13 10:33:54 +05:30
woo-renew-subscription Display a notice for expired/expiring subscriptions along with a plugin update message. (#47076) 2024-05-20 03:06:03 +00:00
woo-subscriptions-notice Show notice for expired and expiring subscriptions in settings and in-app extensions page (#47004) 2024-05-31 08:34:36 +07:00
README.md dev: update webpack build to dynamiclly fetch wp-admin-scripts (#51133) 2024-09-05 00:14:32 +00:00

README.md

WP Admin Scripts

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.

Each subdirectory of this directory is automatically added as an entrypoint in the webpack build script of WooCommerce Admin. When they are built, each one results in a pair of <subdirectory-name>.asset.php and <subdirectory-name>.js file in the build\wp-admin-scripts\ path, but they will not be automatically loaded on every PHP page.

The <subdirectory-name>.asset.php file contains a list of automatically detected dependencies generated by the Dependency Extraction Webpack Plugin, so JS dependencies are not required to be manually enqueued as long as the WCAdminAssets::register_script() function is used to enqueue the script.

As an example, the payment-method-promotions wp-admin-scripts has generated payment-method-promotions.asset.php with the contents below:

<?php return array('dependencies' => array('react', 'wc-components', 'wc-experimental', 'wc-settings', 'wc-store-data', 'wc-tracks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => 'e64b1e69145febe07734');

And is registered as a script like so: plugins/woocommerce/src/Internal/Admin/WCPayPromotion/Init.php,

WCAdminAssets::register_script( 'wp-admin-scripts', 'payment-method-promotions', true );