Remove Downloads section from Woocommerce order refunded email The Next CEO of Stack OverflowWoocommerce Refund EmailRemove the shipping row from the order table in Woocommerce email notificationsCustom “reply to” email header in Woocommerce New Order email notificationRemove Order # from WooCommerce “Order on-hold” & “New Order” EmailsChange reply-to header of 'new order' email in WoocommerceRemove product downloads section in woocommerce email notificationsRemove downloads section from email notifications in WoocommerceRemove the column Quantity from email notifications in WoocommerceTrigger email on order custom status change in WoocommerceSending Customer Email on Cancelled Order in Woocommerce

If/When UK leaves the EU, can a future goverment conduct a referendum to join the EU?

Contours of a clandestine nature

Would a galaxy be visible from outside, but nearby?

Novel about a guy who is possessed by the divine essence and the world ends?

Interfacing a button to MCU (and PC) with 50m long cable

Is there a difference between "Fahrstuhl" and "Aufzug"

Why does the UK parliament need a vote on the political declaration?

Should I tutor a student who I know has cheated on their homework?

Can I run my washing machine drain line into a condensate pump so it drains better?

How powerful is the invisibility granted by the Gloom Stalker ranger's Umbral Sight feature?

Can I equip Skullclamp on a creature I am sacrificing?

How does the mv command work with external drives?

Are there any limitations on attacking while grappling?

Does it take more energy to get to Venus or to Mars?

Why don't programming languages automatically manage the synchronous/asynchronous problem?

How to solve a differential equation with a term to a power?

What is "(CFMCC)" on an ILS approach chart?

Complex fractions

Won the lottery - how do I keep the money?

Are there any unintended negative consequences to allowing PCs to gain multiple levels at once in a short milestone-XP game?

What was the first Unix version to run on a microcomputer?

How to count occurrences of text in a file?

Why do airplanes bank sharply to the right after air-to-air refueling?

How to avoid supervisors with prejudiced views?



Remove Downloads section from Woocommerce order refunded email



The Next CEO of Stack OverflowWoocommerce Refund EmailRemove the shipping row from the order table in Woocommerce email notificationsCustom “reply to” email header in Woocommerce New Order email notificationRemove Order # from WooCommerce “Order on-hold” & “New Order” EmailsChange reply-to header of 'new order' email in WoocommerceRemove product downloads section in woocommerce email notificationsRemove downloads section from email notifications in WoocommerceRemove the column Quantity from email notifications in WoocommerceTrigger email on order custom status change in WoocommerceSending Customer Email on Cancelled Order in Woocommerce










1















I have seen this snippet which removes from all customer emails, however I'm wondering how to remove the downloads section from the Woocommerce email: Order Refunded.



add_action( 'woocommerce_email', 'remove_order_downloads_from_emails', 10, 1 ); 
function remove_order_downloads_from_emails( $emails )
remove_action( 'woocommerce_email_order_details', array( $emails, 'order_downloads' ), 10 );



Any help much appreciated.










share|improve this question




























    1















    I have seen this snippet which removes from all customer emails, however I'm wondering how to remove the downloads section from the Woocommerce email: Order Refunded.



    add_action( 'woocommerce_email', 'remove_order_downloads_from_emails', 10, 1 ); 
    function remove_order_downloads_from_emails( $emails )
    remove_action( 'woocommerce_email_order_details', array( $emails, 'order_downloads' ), 10 );



    Any help much appreciated.










    share|improve this question


























      1












      1








      1


      1






      I have seen this snippet which removes from all customer emails, however I'm wondering how to remove the downloads section from the Woocommerce email: Order Refunded.



      add_action( 'woocommerce_email', 'remove_order_downloads_from_emails', 10, 1 ); 
      function remove_order_downloads_from_emails( $emails )
      remove_action( 'woocommerce_email_order_details', array( $emails, 'order_downloads' ), 10 );



      Any help much appreciated.










      share|improve this question
















      I have seen this snippet which removes from all customer emails, however I'm wondering how to remove the downloads section from the Woocommerce email: Order Refunded.



      add_action( 'woocommerce_email', 'remove_order_downloads_from_emails', 10, 1 ); 
      function remove_order_downloads_from_emails( $emails )
      remove_action( 'woocommerce_email_order_details', array( $emails, 'order_downloads' ), 10 );



      Any help much appreciated.







      php wordpress woocommerce email-notifications digital-downloads






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 8 at 19:45









      LoicTheAztec

      95.2k1371111




      95.2k1371111










      asked Mar 8 at 12:39









      tombo80tombo80

      153




      153






















          1 Answer
          1






          active

          oldest

          votes


















          2














          The following code will remove the downloads table section from Refunded order email notification:



          add_action( 'woocommerce_email_order_details', 'remove_downloads_section_from_refunded_order_emails', 1, 4 );
          function remove_downloads_section_from_refunded_order_emails( $order, $sent_to_admin, $plain_text, $email )
          if( $email->id === 'customer_refunded_order' )
          remove_action( 'woocommerce_email_order_details', array( WC()->mailer(), 'order_downloads' ), 10 );



          Code goes in function.php file of your active child theme (or active theme). Tested and works.






          share|improve this answer























            Your Answer






            StackExchange.ifUsing("editor", function ()
            StackExchange.using("externalEditor", function ()
            StackExchange.using("snippets", function ()
            StackExchange.snippets.init();
            );
            );
            , "code-snippets");

            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "1"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55063430%2fremove-downloads-section-from-woocommerce-order-refunded-email%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            2














            The following code will remove the downloads table section from Refunded order email notification:



            add_action( 'woocommerce_email_order_details', 'remove_downloads_section_from_refunded_order_emails', 1, 4 );
            function remove_downloads_section_from_refunded_order_emails( $order, $sent_to_admin, $plain_text, $email )
            if( $email->id === 'customer_refunded_order' )
            remove_action( 'woocommerce_email_order_details', array( WC()->mailer(), 'order_downloads' ), 10 );



            Code goes in function.php file of your active child theme (or active theme). Tested and works.






            share|improve this answer



























              2














              The following code will remove the downloads table section from Refunded order email notification:



              add_action( 'woocommerce_email_order_details', 'remove_downloads_section_from_refunded_order_emails', 1, 4 );
              function remove_downloads_section_from_refunded_order_emails( $order, $sent_to_admin, $plain_text, $email )
              if( $email->id === 'customer_refunded_order' )
              remove_action( 'woocommerce_email_order_details', array( WC()->mailer(), 'order_downloads' ), 10 );



              Code goes in function.php file of your active child theme (or active theme). Tested and works.






              share|improve this answer

























                2












                2








                2







                The following code will remove the downloads table section from Refunded order email notification:



                add_action( 'woocommerce_email_order_details', 'remove_downloads_section_from_refunded_order_emails', 1, 4 );
                function remove_downloads_section_from_refunded_order_emails( $order, $sent_to_admin, $plain_text, $email )
                if( $email->id === 'customer_refunded_order' )
                remove_action( 'woocommerce_email_order_details', array( WC()->mailer(), 'order_downloads' ), 10 );



                Code goes in function.php file of your active child theme (or active theme). Tested and works.






                share|improve this answer













                The following code will remove the downloads table section from Refunded order email notification:



                add_action( 'woocommerce_email_order_details', 'remove_downloads_section_from_refunded_order_emails', 1, 4 );
                function remove_downloads_section_from_refunded_order_emails( $order, $sent_to_admin, $plain_text, $email )
                if( $email->id === 'customer_refunded_order' )
                remove_action( 'woocommerce_email_order_details', array( WC()->mailer(), 'order_downloads' ), 10 );



                Code goes in function.php file of your active child theme (or active theme). Tested and works.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Mar 8 at 14:27









                LoicTheAztecLoicTheAztec

                95.2k1371111




                95.2k1371111





























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55063430%2fremove-downloads-section-from-woocommerce-order-refunded-email%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Can't initialize raids on a new ASUS Prime B360M-A motherboard2019 Community Moderator ElectionSimilar to RAID config yet more like mirroring solution?Can't get motherboard serial numberWhy does the BIOS entry point start with a WBINVD instruction?UEFI performance Asus Maximus V Extreme

                    Identity Server 4 is not redirecting to Angular app after login2019 Community Moderator ElectionIdentity Server 4 and dockerIdentityserver implicit flow unauthorized_clientIdentityServer Hybrid Flow - Access Token is null after user successful loginIdentity Server to MVC client : Page Redirect After loginLogin with Steam OpenId(oidc-client-js)Identity Server 4+.NET Core 2.0 + IdentityIdentityServer4 post-login redirect not working in Edge browserCall to IdentityServer4 generates System.NullReferenceException: Object reference not set to an instance of an objectIdentityServer4 without HTTPS not workingHow to get Authorization code from identity server without login form

                    2005 Ahvaz unrest Contents Background Causes Casualties Aftermath See also References Navigation menue"At Least 10 Are Killed by Bombs in Iran""Iran"Archived"Arab-Iranians in Iran to make April 15 'Day of Fury'"State of Mind, State of Order: Reactions to Ethnic Unrest in the Islamic Republic of Iran.10.1111/j.1754-9469.2008.00028.x"Iran hangs Arab separatists"Iran Overview from ArchivedConstitution of the Islamic Republic of Iran"Tehran puzzled by forged 'riots' letter""Iran and its minorities: Down in the second class""Iran: Handling Of Ahvaz Unrest Could End With Televised Confessions""Bombings Rock Iran Ahead of Election""Five die in Iran ethnic clashes""Iran: Need for restraint as anniversary of unrest in Khuzestan approaches"Archived"Iranian Sunni protesters killed in clashes with security forces"Archived