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

Get email headers.

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

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 452
return apply_filters( 'woocommerce_email_headers', $header, $this->id, $this->object, $this );
woocommerce/includes/class-wc-emails.php 637
apply_filters( 'woocommerce_email_headers', '', 'low_stock', $product, null ),
woocommerce/includes/class-wc-emails.php 671
apply_filters( 'woocommerce_email_headers', '', 'no_stock', $product, null ),
woocommerce/includes/class-wc-emails.php 709
apply_filters( 'woocommerce_email_headers', '', 'backorder', $args, null ),

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

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