ActionScheduler_NullAction{}WC 1.0

Class ActionScheduler_NullAction

No Hooks.

Usage

$ActionScheduler_NullAction = new ActionScheduler_NullAction();
// use class methods

Methods

  1. public __construct( $hook = '', array $args = array(), ?ActionScheduler_Schedule $schedule = null )
  2. public execute()

ActionScheduler_NullAction{} code WC 9.7.1

class ActionScheduler_NullAction extends ActionScheduler_Action {

	/**
	 * Construct.
	 *
	 * @param string                        $hook Action hook.
	 * @param mixed[]                       $args Action arguments.
	 * @param null|ActionScheduler_Schedule $schedule Action schedule.
	 */
	public function __construct( $hook = '', array $args = array(), ?ActionScheduler_Schedule $schedule = null ) {
		$this->set_schedule( new ActionScheduler_NullSchedule() );
	}

	/**
	 * Execute action.
	 */
	public function execute() {
		// don't execute.
	}
}