Automattic\WooCommerce\Internal\StockNotifications

Notification::get_date_last_attempt │ public │ WC 1.0

Get the date last attempt.

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

Хуков нет.

Возвращает

\WC_DateTime|null. Datetime object if the date is set or null if there is no date.

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

$Notification = new Notification();
$Notification->get_date_last_attempt( $context );
$context(строка)
Context.
По умолчанию: 'view'

Код Notification::get_date_last_attempt() WC 11.3.0

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