woocommerce_email_order_details_heading filter-hookWC 10.8.0

Filter the heading text shown in the order details section of emails.

Usage

add_filter( 'woocommerce_email_order_details_heading', 'wp_kama_woocommerce_email_order_details_heading_filter', 10, 3 );

/**
 * Function for `woocommerce_email_order_details_heading` filter-hook.
 * 
 * @param string   $heading The heading text.
 * @param WC_Order $order   Order object.
 * @param WC_Email $email   Email object.
 *
 * @return string
 */
function wp_kama_woocommerce_email_order_details_heading_filter( $heading, $order, $email ){

	// filter...
	return $heading;
}
$heading(string)
The heading text.
$order(WC_Order)
Order object.
$email(WC_Email)
Email object.

Changelog

Since 10.8.0 Introduced.

Where the hook is called

In file: /templates/emails/email-order-details.php
woocommerce_email_order_details_heading
woocommerce/templates/emails/email-order-details.php 62
$order_details_heading = apply_filters( 'woocommerce_email_order_details_heading', __( 'Order summary', 'woocommerce' ), $order, $email );

Where the hook is used in WooCommerce

Usage not found.