ActionScheduler_Schedule{} │ interface │ WC 1.0

Class ActionScheduler_Schedule

Хуков нет.

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

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

Методы

  1. public is_recurring()
  2. public next( ?DateTime $after = null )

Код ActionScheduler_Schedule{} WC 11.3.0

interface ActionScheduler_Schedule {
	/**
	 * Get the date & time this schedule was created to run, or calculate when it should be run
	 * after a given date & time.
	 *
	 * @param null|DateTime $after Timestamp.
	 * @return DateTime|null
	 */
	public function next( ?DateTime $after = null );

	/**
	 * Identify the schedule as (not) recurring.
	 *
	 * @return bool
	 */
	public function is_recurring();
}