WordPress at Your Fingertips
function is not described

WP_Background_Process::schedule_event() protected WC 1.0

Schedule event

{} It's a method of the class: WP_Background_Process{}

No Hooks.

Return

null. Nothing.

Usage

// protected - for code of main (parent) or child class
$result = $this->schedule_event();

Code of WP_Background_Process::schedule_event() WC 5.8.0

protected function schedule_event() {
	if ( ! wp_next_scheduled( $this->cron_hook_identifier ) ) {
		wp_schedule_event( time(), $this->cron_interval_identifier, $this->cron_hook_identifier );
	}
}