Cron_Monitor::listen_for_changed_schedule( $old_value,  $new_value )

Summary

No summary available.

Parameters

$old_value

(Required)

$new_value

(Required)


Return

(void)


Source

File: src/BigCommerce/Import/Runner/Cron_Monitor.php

	public function listen_for_changed_schedule( $old_value, $new_value ) {
		$next_continue = wp_next_scheduled( Cron_Runner::CONTINUE_CRON );
		if ( ! empty( $next_continue ) ) {
			return; // we have a run in progress, leave it alone
		}

		wp_unschedule_hook( Cron_Runner::START_CRON );

		$scheduler = new Cron_Scheduler();
		$scheduler->schedule_next_import();
	}


User Contributed Notes

You must log in before being able to contribute a note or feedback.