ActionScheduler_CanceledAction::__construct()
Construct.
Method of the class: ActionScheduler_CanceledAction{}
No Hooks.
Returns
null
. Nothing (null).
Usage
$ActionScheduler_CanceledAction = new ActionScheduler_CanceledAction(); $ActionScheduler_CanceledAction->__construct( $hook, $args, ?ActionScheduler_Schedule $schedule, $group );
- $hook(string) (required)
- Action's hook.
- $args(array)
- Action's arguments.
Default: array() - ?ActionScheduler_Schedule $schedule **
- -
Default: null - $group(string)
- Action's group.
Default: ''
ActionScheduler_CanceledAction::__construct() ActionScheduler CanceledAction:: construct code WC 9.8.5
public function __construct( $hook, array $args = array(), ?ActionScheduler_Schedule $schedule = null, $group = '' ) { parent::__construct( $hook, $args, $schedule, $group ); if ( is_null( $schedule ) ) { $this->set_schedule( new ActionScheduler_NullSchedule() ); } }