WordPress action hook
woocommerce_subscriptions_email_order_details
Fired by 10 WordPress plugins, running on 1.6M+ sites between them.
“'woocommerce_subscriptions_email_order_details' hook.”
How to use woocommerce_subscriptions_email_order_details
It's an action: your callback runs at that point and receives 4 arguments. Nothing needs to be returned.
Add this to your theme's functions.php or a small custom plugin:
add_action( 'woocommerce_subscriptions_email_order_details', function( $order, $sent_to_admin, $plain_text, $email ) {
// Your code runs here.
}, 10, 4 );Argument names come from WooPayments: Integrated WooCommerce Payments's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
10 plugins that fire woocommerce_subscriptions_email_order_details
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
WooPayments: Integrated WooCommerce Payments800,000+ installs
do_action( 'woocommerce_subscriptions_email_order_details', $order, $sent_to_admin, $plain_text, $email )includes/compat/subscriptions/emails/failed-renewal-authentication.php:22 -
WooCommerce Stripe Payment Gateway700,000+ installs
do_action( 'woocommerce_subscriptions_email_order_details', $order, $sent_to_admin, $plain_text, $email )templates/emails/failed-renewal-authentication.php:16 -
Kadence WooCommerce Email Designer90,000+ installs
do_action( 'woocommerce_subscriptions_email_order_details', $order, $sent_to_admin, $plain_text, $email )templates/woo/emails/admin-new-renewal-order.php:29 -
Email Templates Customizer and Designer for WordPress and WooCommerce20,000+ installs
do_action( 'woocommerce_subscriptions_email_order_details', $order, $sent_to_admin, $plain_text, $email )templates/woo/emails/admin-new-renewal-order.php:30 -
WebToffee eCommerce Marketing Automation10,000+ installs
do_action( 'woocommerce_subscriptions_email_order_details', $order, $sent_to_admin, $plain_text, $email )includes/wt-woo-templates/emails/active-subscription.php:15 -
Donation Platform for WooCommerce: Fundraising & Donation Management6,000+ installs
do_action( 'woocommerce_subscriptions_email_order_details', $subscription, $sent_to_admin, $plain_text, $email )includes/integrations/woocommerce-subscriptions/templates/emails/cancelled-subscription.php:60 -
Marketing 360® Payments for WooCommerce30+ installs
do_action( 'woocommerce_subscriptions_email_order_details', $order, $sent_to_admin, $plain_text, $email )templates/emails/failed-renewal-authentication.php:15 -
YeeSubscriptions10+ installs
do_action( 'woocommerce_subscriptions_email_order_details', $subscription, $sent_to_admin, $plain_text, $email )templates/emails/customer-notification-auto-renewal.php:67 -
SkyHS10+ installs
do_action( 'woocommerce_subscriptions_email_order_details', $order, $sent_to_admin, $plain_text, $email )templates/emails/admin-new-switch-order.php:22 -
PayRivet Payments with Stripe for WooCommerceFewer than 10 installs
do_action( 'woocommerce_subscriptions_email_order_details', $order, $sent_to_admin, $plain_text, $email )templates/emails/failed-renewal-authentication.php:16
Need a customisation built on this hook?
Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.