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 find variable: document ReactNative Js2019 Community Moderator ElectionReactNative: how to center text?Can't find variable: navigate - ReactNative navigationReact Native error: “Can't find variable: TouchableHighlight”How to use Expo.DocumentPicker.getDocumentAsync properly. [Expo] [ReactNative]Can't find variable: regeneratorRuntime (ReactNative)Reactnative Expo It is advisable for a StartUp?Can't find variable : Self / Can't install firebaseNPM Install Error in installing ReactNative CLIContacts Displaying in App using ReactnativeFacebook login error: can't find variable: Alert

                    Thal And Out Agency railway station See also References External links Navigation menuOfficial Web Site of Pakistan RailwaysArchivedOfficial Web Site of Pakistan Railwayseeexpanding ite

                    Posting a File and Associated Data to a RESTful WebService preferably as JSON2019 Community Moderator ElectionREST URI convention - Singular or plural name of resource while creating itUploading both data and files in one form using Ajax?How do I upload a file with metadata using a REST web service?REST API - file (ie images) processing - best practicesSpring: JSON data and file in the same requestREST API Put large dataPosting a file and JSON data to Spring rest serviceRESTful Web Service Upload/Download Large Data With JSONREST API Design sending JSON data and a file to the api in same requestPost JSONArray to REST servicePUT vs. POST in RESTParsing values from a JSON file?JavaScript/jQuery to download file via POST with JSON dataHow do I upload a file with metadata using a REST web service?How to POST JSON data with Curl from Terminal/Commandline to Test Spring REST?Separate REST JSON API server and client?what's the correct way to send a file from REST web service to client?How do I write JSON data to a file?What is “406-Not Acceptable Response” in HTTP?REST API - file (ie images) processing - best practices