WordPress filter hook

woocommerce_email_body_display_section_divider

Defined by WooCommerce and fired by 8 plugins in total, running on 7.1M+ sites between them.

“Filter whether to display the section divider in the email body.”

How to use woocommerce_email_body_display_section_divider

It's a filter: your callback receives the value, and must return the (changed) value. Add this to your theme's functions.php or a small custom plugin:

functions.php
add_filter( 'woocommerce_email_body_display_section_divider', function( $value ) {
	// Change $value here.
	return $value;
}, 10, 1 );

Argument names come from WooCommerce's source. Other plugins may pass different values: check the call in the plugin you're targeting below.

8 plugins that fire woocommerce_email_body_display_section_divider

Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.

  1. WooCommerce icon WooCommerce7+ million installs apply_filters( 'woocommerce_email_body_display_section_divider', true ) templates/emails/email-addresses.php:35
  2. Germanized for WooCommerce icon Germanized for WooCommerce70,000+ installs apply_filters( 'woocommerce_email_body_display_section_divider', true ) packages/eu-order-withdrawal-button-for-woocommerce/templates/emails/email-withdrawal-details.php:22
  3. Fluid Checkout for WooCommerce icon Fluid Checkout for WooCommerce20,000+ installs apply_filters( 'woocommerce_email_body_display_section_divider', true ) templates/fc/checkout-steps/emails/email-addresses.php:88
  4. Donation Platform for WooCommerce: Fundraising & Donation Management icon Donation Platform for WooCommerce: Fundraising & Donation Management6,000+ installs apply_filters( 'woocommerce_email_body_display_section_divider', true ) includes/wc-templates/emails/email-addresses.php:37
  5. EU Order Withdrawal Button for WooCommerce icon EU Order Withdrawal Button for WooCommerce6,000+ installs apply_filters( 'woocommerce_email_body_display_section_divider', true ) templates/emails/email-withdrawal-details.php:22
  6. EU Consumer Rights for WooCommerce icon EU Consumer Rights for WooCommerce200+ installs apply_filters( 'woocommerce_email_body_display_section_divider', true ) withdrawal/templates/eggl-withdrawal/emails/email-withdrawal-details.php:22
  7. Hotel Booking for WooCommerce icon Hotel Booking for WooCommerce100+ installs apply_filters( 'woocommerce_email_body_display_section_divider', true ) templates/emails/email-booking-details.php:25
  8. Order Status & Tracking Emails for WooCommerce icon Order Status & Tracking Emails for WooCommerce10+ installs apply_filters( 'woocommerce_email_body_display_section_divider', true ) templates/emails/email-addresses.php:31

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.