public function schedule_event() {
		if ( $this->is_scheduled( $this->args[ 'name' ] ) ) {
			return;
		}
		if ( $this->args[ 'run_on_creation' ] ) {
			call_user_func( $this->args[ 'cb' ], $this->args[ 'args' ] );
		}
		if ( $this->args[ 'schedule' ] === 'schedule' ) {
			wp_schedule_event( $this->args[ 'time' ], $this->args[ 'recurrence' ], $this->args[ 'name' ], $this->args[ 'args' ] );
		} elseif ( $this->args[ 'schedule' ] === 'single' ) {
			wp_schedule_single_event( $this->args[ 'recurrence' ], $this->args[ 'name' ], $this->args[ 'args' ] );
		}

		// Save all the site ids where is the corn for the deactivation
		if ( is_multisite() && !wp_is_large_network() ) {
			$sites = ( array ) get_site_option( $this->args[ 'name' ] . '_sites', array() );
			$sites[] = get_current_blog_id();
			update_site_option( $this->args[ 'name' ] . '_sites', $sites );
		}

		return true;
	}
public function schedule_event() {
		if ( $this->is_scheduled( $this->args[ 'name' ] ) ) {
			return;
		}
		if ( $this->args[ 'run_on_creation' ] ) {
			call_user_func( $this->args[ 'cb' ], $this->args[ 'args' ] );
		}
		if ( $this->args[ 'schedule' ] === 'schedule' ) {
			wp_schedule_event( $this->args[ 'time' ], $this->args[ 'recurrence' ], $this->args[ 'name' ], $this->args[ 'args' ] );
		} elseif ( $this->args[ 'schedule' ] === 'single' ) {
			wp_schedule_single_event( $this->args[ 'recurrence' ], $this->args[ 'name' ], $this->args[ 'args' ] );
		}

		// Save all the site ids where is the corn for the deactivation
		if ( is_multisite() && !wp_is_large_network() ) {
			$sites = ( array ) get_site_option( $this->args[ 'name' ] . '_sites', array() );
			$sites[] = get_current_blog_id();
			update_site_option( $this->args[ 'name' ] . '_sites', $sites );
		}

		return true;
	}
public function schedule_event ( ) { if ( $ this -> is_scheduled ( $ this -> args [ 'name' ] ) ) { return ; } if ( $ this -> args [ 'run_on_creation' ] ) { call_user_func ( $ this -> args [ 'cb' ] , $ this -> args [ 'args' ] ) ; } if ( $ this -> args [ 'schedule' ] === 'schedule' ) { wp_schedule_event ( $ this -> args [ 'time' ] , $ this -> args [ 'recurrence' ] , $ this -> args [ 'name' ] , $ this -> args [ 'args' ] ) ; } elseif ( $ this -> args [ 'schedule' ] === 'single' ) { wp_schedule_single_event ( $ this -> args [ 'recurrence' ] , $ this -> args [ 'name' ] , $ this -> args [ 'args' ] ) ; } // Save all the site ids where is the corn for the deactivation if ( is_multisite ( ) && ! wp_is_large_network ( ) ) { $ sites = ( array ) get_site_option ( $ this -> args [ 'name' ] . '_sites' , array ( ) ) ; $ sites [ ] = get_current_blog_id ( ) ; update_site_option ( $ this -> args [ 'name' ] . '_sites' , $ sites ) ; } return true ; }
Schedule the event

@since 1.0.0

@return void
Schedule the event