ActionScheduler_InvalidActionException::from_schedule()
Create a new exception when the action's schedule cannot be fetched.
Метод класса: ActionScheduler_InvalidActionException{}
Хуков нет.
Возвращает
static
.
Использование
$result = ActionScheduler_InvalidActionException::from_schedule( $action_id, $schedule );
- $action_id(строка) (обязательный)
- The action ID with bad args.
- $schedule (обязательный)
- -
Код ActionScheduler_InvalidActionException::from_schedule() ActionScheduler InvalidActionException::from schedule WC 8.7.0
public static function from_schedule( $action_id, $schedule ) { $message = sprintf( /* translators: 1: action ID 2: schedule */ __( 'Action [%1$s] has an invalid schedule: %2$s', 'woocommerce' ), $action_id, var_export( $schedule, true ) ); return new static( $message ); }