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

ActionScheduler_Schedule_Deprecated() WC 1.0

Class ActionScheduler_Abstract_Schedule

Хуков нет.

Возвращает

Null. Ничего.

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

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

Методы

  1. next( DateTime $after = NULL )

Код ActionScheduler Schedule Deprecated: woocommerce/packages/action-scheduler/deprecated/ActionScheduler_Schedule_Deprecated.php WC 4.3.3

<?php
abstract class ActionScheduler_Schedule_Deprecated implements 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 DateTime $after
	 *
	 * @return DateTime|null
	 */
	public function next( DateTime $after = NULL ) {
		if ( empty( $after ) ) {
			$return_value       = $this->get_date();
			$replacement_method = 'get_date()';
		} else {
			$return_value       = $this->get_next( $after );
			$replacement_method = 'get_next( $after )';
		}

		_deprecated_function( __METHOD__, '3.0.0', __CLASS__ . '::' . $replacement_method );

		return $return_value;
	}
}