Disable email notification for WooCommerce manual/edit orders
<p>WooCommerce expertise needed</p>

<p>I need to disable email notifications for orders that I create manually, I have to use the processing status, I can't create a custom status because of a custom hook for the processing order status.</p>

<p>Ideally a checkbox in the manual order page that could be ticked and when it is ticked it will disable email from sending to the customer at every status. (processing - completed).</p>

<p>Reason is that ebay orders have to be entered into the backend orders for database reasons and we dont want emails resent to the customer that have already been sent via ebay.</p>

<p>I am guessing that this hook will need to be called:</p>

<pre><code>remove_action( 'woocommerce_order_status_completed_notification', array( $email_class-&gt;emails['WC_Email_Customer_Completed_Order'], 'trigger' ) );
</code></pre>

<p>And this:</p>

<pre><code>remove_action( 'woocommerce_order_status_pending_to_processing_notification', array( $email_class-&gt;emails['WC_Email_Customer_Processing_Order'], 'trigger' ) );
</code></pre>