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

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

add_filter( 'woocommerce_email_content_type', 'wp_kama_woocommerce_email_content_type_filter', 10, 3 );

/**
 * Function for `woocommerce_email_content_type` filter-hook.
 * 
 * @param  $content_type         
 * @param  $that                 
 * @param  $default_content_type 
 *
 * @return 
 */
function wp_kama_woocommerce_email_content_type_filter( $content_type, $that, $default_content_type ){

	// filter...
	return $content_type;
}
$content_type
-
$that
-
$default_content_type
-

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

WC_Email::get_content_type()
woocommerce_email_content_type
woocommerce/includes/emails/class-wc-email.php 508
return apply_filters( 'woocommerce_email_content_type', $content_type, $this, $default_content_type );

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

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