woocommerce_email_format_string filter-hookWC 3.2.0

Filter for main find/replace.

Usage

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
-

Changelog

Since 3.2.0 Introduced.

Where the hook is called

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 );

Where the hook is used in WooCommerce

Usage not found.