ActionScheduler_Action::__construct()
Method of the class: ActionScheduler_Action{}
No Hooks.
Return
null
. Nothing.
Usage
$ActionScheduler_Action = new ActionScheduler_Action(); $ActionScheduler_Action->__construct( $hook, $args, $schedule, $group );
- $hook (required)
- -
- $args(array)
- -
Default: array() - $schedule(ActionScheduler_Schedule)
- -
Default: NULL - $group **
- -
Default: ''
ActionScheduler_Action::__construct() ActionScheduler Action:: construct code WC 7.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); }