Automator_Load::automator_schedule_healthchecks()

automator_schedule_healthchecks

Contents


Return Return

(void)


Source Source

File: src/class-automator-load.php

	public function automator_schedule_healthchecks() {
		if ( ! wp_next_scheduled( 'automator_weekly_healthcheck' ) ) {
			wp_schedule_event( time(), 'weekly', 'automator_weekly_healthcheck' );
		}
		if ( ! wp_next_scheduled( 'automator_daily_healthcheck' ) ) {
			wp_schedule_event( time(), 'daily', 'automator_daily_healthcheck' );
		}
	}