WC_Admin_Marketplace_Promotions::clear_cron_event │ public static │ WC 1.0

When WooCommerce is disabled, clear the WP Cron event we use to fetch promotions.

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

Хуков нет.

Возвращает

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

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

$result = WC_Admin_Marketplace_Promotions::clear_cron_event();

Код WC_Admin_Marketplace_Promotions::clear_cron_event() WC 11.3.0

public static function clear_cron_event() {
	$timestamp = wp_next_scheduled( self::CRON_NAME );
	wp_unschedule_event( $timestamp, self::CRON_NAME );
}