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.
Return
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 9.5.1
public static function clear_cron_event() { $timestamp = wp_next_scheduled( self::CRON_NAME ); wp_unschedule_event( $timestamp, self::CRON_NAME ); }