WC_Order::get_new_order_email_sent()publicWC 1.0

Whether email have been sent for this order.

Method of the class: WC_Order{}

No Hooks.

Return

true|false.

Usage

$WC_Order = new WC_Order();
$WC_Order->get_new_order_email_sent( $context );
$context(string)
What the value is for. Valid values are view and edit.
Default: 'view'

WC_Order::get_new_order_email_sent() code WC 9.0.1

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