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.
Return
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 9.5.1
private static function schedule_cron_event() { if ( ! wp_next_scheduled( self::CRON_NAME ) ) { wp_schedule_event( time(), 'twicedaily', self::CRON_NAME ); } }