WC_Order::get_new_order_email_sent()publicWC 1.0

Whether email have been sent for this order.

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

Хуков нет.

Возвращает

true|false.

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

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

Код WC_Order::get_new_order_email_sent() WC 7.1.0

public function get_new_order_email_sent( string $context = 'view' ) {
	return wc_string_to_bool( $this->get_prop( 'new_order_email_sent', $context ) );
}