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
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
add a comment |
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
add a comment |
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
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
php wordpress woocommerce email-notifications digital-downloads
edited Mar 8 at 19:45
LoicTheAztec
95.2k1371111
95.2k1371111
asked Mar 8 at 12:39
tombo80tombo80
153
153
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
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.
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
add a comment |
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.
add a comment |
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.
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.
answered Mar 8 at 14:27
LoicTheAztecLoicTheAztec
95.2k1371111
95.2k1371111
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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