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:

functions.php
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.

  1. WooPayments: Integrated WooCommerce Payments icon 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
  2. WooCommerce Stripe Payment Gateway icon 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
  3. Kadence WooCommerce Email Designer icon 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
  4. Email Templates Customizer and Designer for WordPress and WooCommerce icon 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
  5. WebToffee eCommerce Marketing Automation icon 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
  6. Donation Platform for WooCommerce: Fundraising & Donation Management icon 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
  7. Marketing 360® Payments for WooCommerce icon 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
  8. YeeSubscriptions icon YeeSubscriptions10+ installs do_action( 'woocommerce_subscriptions_email_order_details', $subscription, $sent_to_admin, $plain_text, $email ) templates/emails/customer-notification-auto-renewal.php:67
  9. SkyHS icon SkyHS10+ installs do_action( 'woocommerce_subscriptions_email_order_details', $order, $sent_to_admin, $plain_text, $email ) templates/emails/admin-new-switch-order.php:22
  10. PayRivet Payments with Stripe for WooCommerce icon 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.