5cd46f48ad
* 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. |
||
---|---|---|
.. | ||
woo-ai | ||
woocommerce | ||
woocommerce-admin | ||
woocommerce-beta-tester | ||
woocommerce-blocks |