WordPress at a glance
function is not described

ActionScheduler_Store::validate_args() protected WC 1.0

Validate that we could decode action arguments.

{} 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_args( $args, $action_id );
$args(mixed) (required)
The decoded arguments.
$action_id(int) (required)
The action ID.

Code of ActionScheduler_Store::validate_args() WC 5.0.0

<?php
protected function validate_args( $args, $action_id ) {
	// Ensure we have an array of args.
	if ( ! is_array( $args ) ) {
		throw ActionScheduler_InvalidActionException::from_decoding_args( $action_id );
	}

	// Validate JSON decoding if possible.
	if ( function_exists( 'json_last_error' ) && JSON_ERROR_NONE !== json_last_error() ) {
		throw ActionScheduler_InvalidActionException::from_decoding_args( $action_id, $args );
	}
}