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 **
- -
По умолчанию: array()
Код ActionScheduler_InvalidActionException::from_decoding_args() ActionScheduler InvalidActionException::from decoding args WC 8.7.0
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 ); }