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.
Return
static
.
Usage
$result = ActionScheduler_InvalidActionException::from_decoding_args( $action_id, $args );
- $action_id(string) (required)
- The action ID with bad args.
- $args **
- -
Default: array()
ActionScheduler_InvalidActionException::from_decoding_args() ActionScheduler InvalidActionException::from decoding args code WC 9.3.3
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 ) ); return new static( $message ); }