WC_Webhook::get_date_modified()publicWC 3.2.0

Get webhook modified date.

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

Хуков нет.

Возвращает

WC_DateTime|null. Object if the date is set or null if there is no date.

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

$WC_Webhook = new WC_Webhook();
$WC_Webhook->get_date_modified( $context );
$context(строка)
What the value is for. Valid values are 'view' and 'edit'.
По умолчанию: 'view'

Список изменений

С версии 3.2.0 Введена.

Код WC_Webhook::get_date_modified() WC 8.7.0

public function get_date_modified( $context = 'view' ) {
	return $this->get_prop( 'date_modified', $context );
}