ActionScheduler_InvalidActionException::from_decoding_args
Create a new exception when the action's args cannot be decoded to an array.
Метод класса: ActionScheduler_InvalidActionException{}
Хуков нет.
Возвращает
static.
Использование
$result = ActionScheduler_InvalidActionException::from_decoding_args( $action_id, $args );
- $action_id(строка) (обязательный)
- The action ID with bad args.
- $args(разное)
- Passed arguments.
По умолчанию:array()
Код ActionScheduler_InvalidActionException::from_decoding_args() ActionScheduler InvalidActionException::from decoding args WC 11.2.2
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 );
}