woocommerce_email_content_type хук-фильтр . WC 1.0
Использование
add_filter( 'woocommerce_email_content_type', 'filter_function_name_6160', 10, 3 ); function filter_function_name_6160( $content_type, $that, $default_content_type ){ // filter... return $content_type; }
- $content_type
- -
- $that
- -
- $default_content_type
- -
Где вызывается хук
woocommerce_email_content_type
woocommerce/includes/emails/class-wc-email.php 461
return apply_filters( 'woocommerce_email_content_type', $content_type, $this, $default_content_type );