ActionScheduler_Action::__construct
Construct.
Метод класса: ActionScheduler_Action{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$ActionScheduler_Action = new ActionScheduler_Action(); $ActionScheduler_Action->__construct( $hook, $args, ?ActionScheduler_Schedule $schedule, $group );
- $hook(строка) (обязательный)
- Action's hook.
- $args(mixed[])
- Action's arguments.
По умолчанию:array() - ?ActionScheduler_Schedule $schedule
- .
По умолчанию:null - $group(строка)
- Action's group.
По умолчанию:''
Код ActionScheduler_Action::__construct() ActionScheduler Action:: construct WC 11.3.0
public function __construct( $hook, array $args = array(), ?ActionScheduler_Schedule $schedule = null, $group = '' ) {
$schedule = empty( $schedule ) ? new ActionScheduler_NullSchedule() : $schedule;
$this->set_hook( $hook );
$this->set_schedule( $schedule );
$this->set_args( $args );
$this->set_group( $group );
}