ActionScheduler_DBStore::get_date()publicWC 1.0

Get the schedule date for an action.

Метод класса: ActionScheduler_DBStore{}

Хуков нет.

Возвращает

\DateTime. The local date the action is scheduled to run, or the date that it ran.

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

$ActionScheduler_DBStore = new ActionScheduler_DBStore();
$ActionScheduler_DBStore->get_date( $action_id );
$action_id(строка) (обязательный)
Action ID.

Код ActionScheduler_DBStore::get_date() WC 8.7.0

public function get_date( $action_id ) {
	$date = $this->get_date_gmt( $action_id );
	ActionScheduler_TimezoneHelper::set_local_timezone( $date );
	return $date;
}