WC_Admin_Marketplace_Promotions::clear_cron_event
When WooCommerce is disabled, clear the WP Cron event we use to fetch promotions.
Метод класса: WC_Admin_Marketplace_Promotions{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$result = WC_Admin_Marketplace_Promotions::clear_cron_event();
Код WC_Admin_Marketplace_Promotions::clear_cron_event() WC Admin Marketplace Promotions::clear cron event WC 10.4.3
public static function clear_cron_event() {
$timestamp = wp_next_scheduled( self::CRON_NAME );
wp_unschedule_event( $timestamp, self::CRON_NAME );
}