WC_Admin_Marketplace_Promotions::clear_scheduled_event()public staticWC 1.0

Clear the scheduled action that was used to fetch promotions in WooCommerce 8.8. It's no longer needed as a transient is used to store the data.

Метод класса: WC_Admin_Marketplace_Promotions{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$result = WC_Admin_Marketplace_Promotions::clear_scheduled_event();

Код WC_Admin_Marketplace_Promotions::clear_scheduled_event() WC 9.4.2

public static function clear_scheduled_event() {
	if ( function_exists( 'as_unschedule_all_actions' ) ) {
		as_unschedule_all_actions( 'woocommerce_marketplace_fetch_promotions' );
	}
}