woocommerce_email_headers хук-фильтрWC 1.0

Использование

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

/**
 * Function for `woocommerce_email_headers` filter-hook.
 * 
 * @param  $header 
 * @param  $id     
 * @param  $object 
 * @param  $that   
 *
 * @return 
 */
function wp_kama_woocommerce_email_headers_filter( $header, $id, $object, $that ){

	// filter...
	return $header;
}
$header
-
$id
-
$object
-
$that
-

Где вызывается хук

EmailNotification::get_headers()
woocommerce_email_headers
WC_Email::get_headers()
woocommerce_email_headers
WC_Emails::low_stock()
woocommerce_email_headers
WC_Emails::no_stock()
woocommerce_email_headers
WC_Emails::backorder()
woocommerce_email_headers
woocommerce/src/Internal/Admin/Notes/EmailNotification.php 100
return apply_filters( 'woocommerce_email_headers', $header, $this->id, $this->object, $this );
woocommerce/includes/emails/class-wc-email.php 468
return apply_filters( 'woocommerce_email_headers', $header, $this->id, $this->object, $this );
woocommerce/includes/class-wc-emails.php 707
apply_filters( 'woocommerce_email_headers', '', 'low_stock', $product, null ),
woocommerce/includes/class-wc-emails.php 741
apply_filters( 'woocommerce_email_headers', '', 'no_stock', $product, null ),
woocommerce/includes/class-wc-emails.php 779
apply_filters( 'woocommerce_email_headers', '', 'backorder', $args, null ),

Где используется хук в WooCommerce

Использование не найдено.