WordPress at Your Fingertips
function is not described

ActionScheduler_Store::validate_schedule() protected WC 1.0

Validate a ActionScheduler_Schedule object.

{} It's a method of the class: ActionScheduler_Store{}

No Hooks.

Return

null. Nothing.

Usage

// protected - for code of main (parent) or child class
$result = $this->validate_schedule( $schedule, $action_id );
$schedule(mixed) (required)
The unserialized ActionScheduler_Schedule object.
$action_id(int) (required)
The action ID.

Code of ActionScheduler_Store::validate_schedule() WC 6.1.1

protected function validate_schedule( $schedule, $action_id ) {
	if ( empty( $schedule ) || ! is_a( $schedule, 'ActionScheduler_Schedule' ) ) {
		throw ActionScheduler_InvalidActionException::from_schedule( $action_id, $schedule );
	}
}