WC_Admin_Marketplace_Promotions::clear_cron_event
When WooCommerce is disabled, clear the WP Cron event we use to fetch promotions.
Method of the class: WC_Admin_Marketplace_Promotions{}
No Hooks.
Returns
null. Nothing (null).
Usage
$result = WC_Admin_Marketplace_Promotions::clear_cron_event();
WC_Admin_Marketplace_Promotions::clear_cron_event() WC Admin Marketplace Promotions::clear cron event code WC 10.3.3
public static function clear_cron_event() {
$timestamp = wp_next_scheduled( self::CRON_NAME );
wp_unschedule_event( $timestamp, self::CRON_NAME );
}