woocommerce_email_format_string хук-фильтрWC 3.2.0

Filter for main find/replace.

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

add_filter( 'woocommerce_email_format_string', 'wp_kama_woocommerce_email_format_string_filter', 10, 2 );

/**
 * Function for `woocommerce_email_format_string` filter-hook.
 * 
 * @param  $str_replace 
 * @param  $that        
 *
 * @return 
 */
function wp_kama_woocommerce_email_format_string_filter( $str_replace, $that ){

	// filter...
	return $str_replace;
}
$str_replace
-
$that
-

Список изменений

С версии 3.2.0 Введена.

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

WC_Email::format_string()
woocommerce_email_format_string
woocommerce/includes/emails/class-wc-email.php 328
return apply_filters( 'woocommerce_email_format_string', str_replace( $find, $replace, $string ), $this );

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

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