src/WPametu/Utility/CronBase.php
public function register_cron() {
		if ( ! wp_next_scheduled( $this->event ) ) {
			wp_schedule_event( $this->start_at(), $this->schedule, $this->event, $this->args() );
		}
		add_action( $this->event, [ $this, 'process' ] );
	}
public function register_cron() {
		if ( ! wp_next_scheduled( $this->event ) ) {
			wp_schedule_event( $this->start_at(), $this->schedule, $this->event, $this->args() );
		}
		add_action( $this->event, [ $this, 'process' ] );
	}
public function register_cron ( ) { if ( ! wp_next_scheduled ( $ this -> event ) ) { wp_schedule_event ( $ this -> start_at ( ) , $ this -> schedule , $ this -> event , $ this -> args ( ) ) ; } add_action ( $ this -> event , [ $ this , 'process' ] ) ; }
Register cron event
Register cron event