WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
класс не описан

ActionScheduler_CanceledAction() WC 1.0

Class ActionScheduler_CanceledAction

Stored action which was canceled and therefore acts like a finished action but should always return a null schedule, regardless of schedule passed to its constructor.

Хуков нет.

Возвращает

Null. Ничего.

Использование

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

Методы

  1. __construct( $hook, array $args = array(), ActionScheduler_Schedule $schedule = null, $group = '' )

Код ActionScheduler CanceledAction: woocommerce/packages/action-scheduler/classes/actions/ActionScheduler_CanceledAction.php WC 4.3.1

<?php
class ActionScheduler_CanceledAction extends ActionScheduler_FinishedAction {

	/**
	 * @param string $hook
	 * @param array $args
	 * @param ActionScheduler_Schedule $schedule
	 * @param string $group
	 */
	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() );
		}
	}
}