ActionScheduler_InvalidActionException::from_decoding_args
Create a new exception when the action's args cannot be decoded to an array.
Method of the class: ActionScheduler_InvalidActionException{}
No Hooks.
Returns
static
.
Usage
$result = ActionScheduler_InvalidActionException::from_decoding_args( $action_id, $args );
- $action_id(string) (required)
- The action ID with bad args.
- $args(mixed)
- Passed arguments.
Default: array()
ActionScheduler_InvalidActionException::from_decoding_args() ActionScheduler InvalidActionException::from decoding args code WC 9.9.5
public static function from_decoding_args( $action_id, $args = array() ) { $message = sprintf( /* translators: 1: action ID 2: arguments */ __( 'Action [%1$s] has invalid arguments. It cannot be JSON decoded to an array. $args = %2$s', 'woocommerce' ), $action_id, var_export( $args, true ) // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_var_export ); return new static( $message ); }