ActionScheduler_Action::__construct
Construct.
Method of the class: ActionScheduler_Action{}
No Hooks.
Returns
null. Nothing (null).
Usage
$ActionScheduler_Action = new ActionScheduler_Action(); $ActionScheduler_Action->__construct( $hook, $args, ?ActionScheduler_Schedule $schedule, $group );
- $hook(string) (required)
- Action's hook.
- $args(mixed[])
- Action's arguments.
Default:array() - ?ActionScheduler_Schedule $schedule
- .
Default:null - $group(string)
- Action's group.
Default:''
ActionScheduler_Action::__construct() ActionScheduler Action:: construct code WC 10.8.1
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 );
}