src/traits/cron.php
private function set_cron_event() {
		$interval = $this->get_interval();
		if ( $interval > 0 ) {
			if ( ! wp_next_scheduled( $this->get_hook_name() ) ) {
				if ( $this->is_running_cron_process() ) {
					return;
				}
				wp_schedule_single_event( time() + $interval, $this->get_hook_name() );
			}
		}
	}
private function set_cron_event() {
		$interval = $this->get_interval();
		if ( $interval > 0 ) {
			if ( ! wp_next_scheduled( $this->get_hook_name() ) ) {
				if ( $this->is_running_cron_process() ) {
					return;
				}
				wp_schedule_single_event( time() + $interval, $this->get_hook_name() );
			}
		}
	}
private function set_cron_event ( ) { $ interval = $ this -> get_interval ( ) ; if ( $ interval > 0 ) { if ( ! wp_next_scheduled ( $ this -> get_hook_name ( ) ) ) { if ( $ this -> is_running_cron_process ( ) ) { return ; } wp_schedule_single_event ( time ( ) + $ interval , $ this -> get_hook_name ( ) ) ; } } }
set cron event
set cron event