woocommerce_email_subject_no_stock filter-hookWC 3.0.0

Filter the subject of the no stock notification email.

Usage

add_filter( 'woocommerce_email_subject_no_stock', 'wp_kama_woocommerce_email_subject_no_stock_filter', 10, 3 );

/**
 * Function for `woocommerce_email_subject_no_stock` filter-hook.
 * 
 * @param string     $subject The email subject.
 * @param WC_Product $product Product instance.
 * @param null       $null    Unused.
 *
 * @return string
 */
function wp_kama_woocommerce_email_subject_no_stock_filter( $subject, $product, $null ){

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

Changelog

Since 3.0.0 Introduced.

Where the hook is called

WC_Emails::no_stock()
woocommerce_email_subject_no_stock
woocommerce/includes/class-wc-emails.php 1139
apply_filters( 'woocommerce_email_subject_no_stock', $subject, $product, null ),

Where the hook is used in WooCommerce

Usage not found.