woocommerce/plugins
Michal Iwanow 5cd46f48ad
Fetch Marketplace promotions - ensure callback is always registered for `woocommerce_marketplace_fetch_promotions` action (#47262)
* Marketplace promotions - ensure action is always there

We started getting errors 'Scheduled action for woocommerce_marketplace_fetch_promotions will not be executed as no callbacks are registered.' on some environments.

In this commit we ensure that WC_Admin_Marketplace_Promotions::fetch_marketplace_promotions() is always added as a calback to our action hook.

* Marketplace promotions - switch from Action Scheduler to transients

We're switching fetching marketplace promotions from using Action Scheduler
every 12 hours, to a 1 day transient. This makes it easier to ensure that
the requests are triggered only for admins, and that they don't impact frontend
users of the stores.

* Changelog

* Clear action from Action Scheduler

Action woocommerce_marketplace_fetch_promotions is no longer used, so we're clearing it when it's triggered.
Since we cannot self-clear the action, we're triggering a new single action when woocommerce_marketplace_fetch_promotions is run.
This new action's sole responsibility is to clear the original action.
2024-05-16 09:56:59 +02:00
..
woo-ai Update to pnpm 9.1 (#47385) 2024-05-13 10:57:39 -03:00
woocommerce Fetch Marketplace promotions - ensure callback is always registered for `woocommerce_marketplace_fetch_promotions` action (#47262) 2024-05-16 09:56:59 +02:00
woocommerce-admin Marketplace business services: Feature branch (#47303) 2024-05-15 14:43:06 +02:00
woocommerce-beta-tester Bump beta tester to 2.3.1 to prep a new release (#47427) 2024-05-15 10:21:54 -07:00
woocommerce-blocks Fix input clearing issue in PriceTextField with improved currency parsing (#47354) 2024-05-16 13:23:47 +05:30