ActionScheduler_Action::__construct()publicWC 1.0

Construct.

Method of the class: ActionScheduler_Action{}

No Hooks.

Return

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() code WC 9.8.2

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 );
}