woocommerce_email_headers filter-hookWC 3.0.0

Filter the headers of the low stock notification email.

Usage

add_filter( 'woocommerce_email_headers', 'wp_kama_woocommerce_email_headers_filter', 10, 3 );

/**
 * Function for `woocommerce_email_headers` filter-hook.
 * 
 * @param string     $headers The email headers.
 * @param WC_Product $product Product instance.
 * @param            $null    
 *
 * @return string
 */
function wp_kama_woocommerce_email_headers_filter( $headers, $product, $null ){

	// filter...
	return $headers;
}
$headers(string)
The email headers.
$product(WC_Product)
Product instance.
$null
-

Changelog

Since 3.0.0 Introduced.

Where the hook is called

WC_Emails::low_stock()
woocommerce_email_headers
WC_Email::get_headers()
woocommerce_email_headers
WC_Emails::no_stock()
woocommerce_email_headers
WC_Emails::backorder()
woocommerce_email_headers
woocommerce/includes/class-wc-emails.php 1068
apply_filters( 'woocommerce_email_headers', '', 'low_stock', $product, null ),
woocommerce/includes/emails/class-wc-email.php 711
return apply_filters( 'woocommerce_email_headers', $header, $this->id, $this->object, $this );
woocommerce/includes/class-wc-emails.php 1155
apply_filters( 'woocommerce_email_headers', '', 'no_stock', $product, null ),
woocommerce/includes/class-wc-emails.php 1241
apply_filters( 'woocommerce_email_headers', '', 'backorder', $args, null ),

Where the hook is used in WooCommerce

Usage not found.