WordPress at Your Fingertips
function is not described

ActionScheduler_Schedule_Deprecated::next() public WC 1.0

Get the date & time this schedule was created to run, or calculate when it should be run after a given date & time.

{} It's a method of the class: ActionScheduler_Schedule_Deprecated{}

No Hooks.

Return

DateTime|null.

Usage

$ActionScheduler_Schedule_Deprecated = new ActionScheduler_Schedule_Deprecated();
$ActionScheduler_Schedule_Deprecated->next( $after );
$after(DateTime)
DateTime to calculate against.
Default: null

Code of ActionScheduler_Schedule_Deprecated::next() WC 6.1.1

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 ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped

	return $return_value;
}