ActionScheduler_Store::validate_schedule
Validate a ActionScheduler_Schedule object.
Method of the class: ActionScheduler_Store{}
No Hooks.
Returns
null
. Nothing (null).
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.
ActionScheduler_Store::validate_schedule() ActionScheduler Store::validate schedule code WC 9.9.5
protected function validate_schedule( $schedule, $action_id ) { if ( empty( $schedule ) || ! is_a( $schedule, 'ActionScheduler_Schedule' ) ) { throw ActionScheduler_InvalidActionException::from_schedule( $action_id, $schedule ); } }