WP_Background_Process::schedule_event
Schedule event
Method of the class: WP_Background_Process{}
No Hooks.
Returns
null. Nothing (null).
Usage
// protected - for code of main (parent) or child class $result = $this->schedule_event();
WP_Background_Process::schedule_event() WP Background Process::schedule event code WC 10.4.3
protected function schedule_event() {
if ( ! wp_next_scheduled( $this->cron_hook_identifier ) ) {
wp_schedule_event( time(), $this->cron_interval_identifier, $this->cron_hook_identifier );
}
}