WP_Background_Process::clear_scheduled_event()protectedWC 1.0

Clear scheduled event

Method of the class: WP_Background_Process{}

No Hooks.

Return

null. Nothing (null).

Usage

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

WP_Background_Process::clear_scheduled_event() code WC 8.7.0

protected function clear_scheduled_event() {
	$timestamp = wp_next_scheduled( $this->cron_hook_identifier );

	if ( $timestamp ) {
		wp_unschedule_event( $timestamp, $this->cron_hook_identifier );
	}
}