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

CronExpression::getNextRunDate() public WC 1.0

Get a next run date relative to the current date or a specific date

{} Это метод класса: CronExpression{}

Хуков нет.

Возвращает

DateTime.

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

$CronExpression = new CronExpression();
$CronExpression->getNextRunDate( $currentTime, $nth, $allowCurrentDate );
$currentTime(строка|DateTime)
(optional) Relative calculation date
По умолчанию: 'now'
$nth(int)
(optional) Number of matches to skip before returning a
php matching next run date. 0, the default, will return the current date and time if the next run date falls on the current date and time. Setting this value to 1 will skip the first match and go to the second match. Setting this value to 2 will skip the first 2 matches and so on.
$allowCurrentDate(true|false)
(optional) Set to TRUE to return the
php current date if it matches the cron expression
По умолчанию: false

Код CronExpression::getNextRunDate() WC 5.8.0

public function getNextRunDate($currentTime = 'now', $nth = 0, $allowCurrentDate = false)
{
    return $this->getRunDate($currentTime, $nth, false, $allowCurrentDate);
}