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

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

                    Understanding generators in Python2019 Community Moderator ElectionGenerator function not working pythonFor loop not executing two timesGenerators - Printing generated valuesWhy can a python generator only be used once?What exactly do generators do?What does the “yield” keyword do?What does “list comprehension” mean? How does it work and how can I use it?sklearn Kfold acces single fold instead of for loopIs a generator the callable? Which is the generator?Apply Border To Range Of Cells Using OpenpyxlCalling an external command in PythonWhat are metaclasses in Python?What is the difference between @staticmethod and @classmethod?Finding the index of an item given a list containing it in PythonDifference between append vs. extend list methods in PythonHow can I safely create a nested directory in Python?Does Python have a ternary conditional operator?Understanding slice notationUnderstanding Python super() with __init__() methodsDoes Python have a string 'contains' substring method?

                    How can I change the color of pagination dots of UIPageControl?How to change UIPageControl dotsIs there a way to change page indicator dots colorCustomize dot with image of UIPageControl at index 0 of UIPageControlNo visible @interface for 'NSObject<PageControlDelegate>' declares the selector 'pageControlPageDidChange:'How to change the color of pagination dots in UIPageControl with a different color per pagepagecontrol indicator custom image instead of DefaultChanging the colour of UIPageControl dots in MonoTouchpagecontrol selectable page visibility color?Alternative way to load ViewControllers on a UIPageControlHow to set only layer.border-color for UIpage control dots in swiftHow can I develop for iPhone using a Windows development machine?How to change the name of an iOS app?UITableView - change section header coloruipagecontrol indicator(dot)issueCustom UIPageControl dots color not changingchange the interspace between UIPageControl dotsHow to change Status Bar text color in iOSHow can I change image tintColor in iOS and WatchKitUIPageControl dots with larger space in between each dotsHow to change the color of pagination dots in UIPageControl with a different color per page