woocommerce_email_order_details_heading
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;
}
Changelog
| Since 10.8.0 | Introduced. |
Where the hook is called
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 );