WC_Admin_Marketplace_Promotions::schedule_cron_event
Schedule a daily cron event to fetch promotions.
Method of the class: WC_Admin_Marketplace_Promotions{}
No Hooks.
Returns
null. Nothing (null).
Usage
$result = WC_Admin_Marketplace_Promotions::schedule_cron_event();
WC_Admin_Marketplace_Promotions::schedule_cron_event() WC Admin Marketplace Promotions::schedule cron event code WC 10.4.3
private static function schedule_cron_event() {
if ( ! wp_next_scheduled( self::CRON_NAME ) ) {
wp_schedule_event( time(), 'twicedaily', self::CRON_NAME );
}
}