Title: Admin email disable code / hook ?
Last modified: March 23, 2021

---

# Admin email disable code / hook ?

 *  Resolved [ezeelo2](https://wordpress.org/support/users/ezeelo2/)
 * (@ezeelo2)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/admin-email-disable-code-hook/)
 * Hey guys,
 * Is there a code or hook where i can disable woocommerce processing admin mail
 * i don’t want admin to receive processing mails just the customer

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [Peter Lawrenson](https://wordpress.org/support/users/lorro/)
 * (@lorro)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/admin-email-disable-code-hook/#post-14222617)
 * You can disable individual emails at:
    Dashboard > WooCommerce > Settings > Emails
   tab “Manage” the relevant email, then uncheck “enable”.
 *  Thread Starter [ezeelo2](https://wordpress.org/support/users/ezeelo2/)
 * (@ezeelo2)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/admin-email-disable-code-hook/#post-14222626)
 * [https://stackoverflow.com/questions/45375143/send-an-email-notification-to-the-admin-for-pending-order-status-in-woocommerce?answertab=active#tab-top](https://stackoverflow.com/questions/45375143/send-an-email-notification-to-the-admin-for-pending-order-status-in-woocommerce?answertab=active#tab-top)
 * [@lorro](https://wordpress.org/support/users/lorro/) I’m following this
    order
   new email is duplicating
    -  This reply was modified 5 years, 2 months ago by [ezeelo2](https://wordpress.org/support/users/ezeelo2/).
 *  [Peter Lawrenson](https://wordpress.org/support/users/lorro/)
 * (@lorro)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/admin-email-disable-code-hook/#post-14222777)
 *     ```
       add_filter( 'woocommerce_email_enabled_new_order', 'my_function' );
       function my_function( $enabled ) {
       ```
   
 * Your code needs to return ‘yes’ when you want the email to fire, or ” (an empty
   string) when you don’t.
 *  Thread Starter [ezeelo2](https://wordpress.org/support/users/ezeelo2/)
 * (@ezeelo2)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/admin-email-disable-code-hook/#post-14222868)
 * [@lorro](https://wordpress.org/support/users/lorro/) I’m not good with coding
   
   thats why i followed that link
 * How do i execute this
 *     ```
       add_filter( 'woocommerce_email_enabled_new_order', 'my_function' );
       function my_function( $enabled ) {
       ```
   
    -  This reply was modified 5 years, 2 months ago by [ezeelo2](https://wordpress.org/support/users/ezeelo2/).
 *  [Peter Lawrenson](https://wordpress.org/support/users/lorro/)
 * (@lorro)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/admin-email-disable-code-hook/#post-14222908)
 * The forum is not a good way to do custom coding and debugging. Forum answers 
   can only hope to point in the right direction. You may need a dev to help out.
 *  Plugin Support [abwaita a11n](https://wordpress.org/support/users/abwaita/)
 * (@abwaita)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/admin-email-disable-code-hook/#post-14259162)
 * Hi [@ezeelo2](https://wordpress.org/support/users/ezeelo2/),
 * Hopefully, you were able to get in touch with a developer for direct assistance.
   I could also suggest the [WooCommerce Customization Experts](https://woocommerce.com/customizations/),
   if you’re still in the search.
 * I’ll go ahead and mark this thread as resolved. Feel free to open a new thread
   if you have further questions.
 * Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Admin email disable code / hook ?’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [abwaita a11n](https://wordpress.org/support/users/abwaita/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/admin-email-disable-code-hook/#post-14259162)
 * Status: resolved