Automattic\WooCommerce\Internal\StockNotifications

Notification::get_date_last_attemptpublicWC 1.0

Get the date last attempt.

Method of the class: Notification{}

No Hooks.

Returns

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

Usage

$Notification = new Notification();
$Notification->get_date_last_attempt( $context );
$context(string)
Context.
Default: 'view'

Notification::get_date_last_attempt() code WC 10.3.6

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