WC_Order::set_new_order_email_sent()publicWC 1.0

Stores information about whether email was sent.

Method of the class: WC_Order{}

No Hooks.

Return

null. Nothing (null).

Usage

$WC_Order = new WC_Order();
$WC_Order->set_new_order_email_sent( $value );
$value(true|false|string) (required)
True if email was sent, false if not.

WC_Order::set_new_order_email_sent() code WC 8.9.0

public function set_new_order_email_sent( $value ) {
	$this->set_prop( 'new_order_email_sent', wc_string_to_bool( $value ) );
}