woocommerce_email_format_string
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
woocommerce_email_format_string
woocommerce/includes/emails/class-wc-email.php 403
return apply_filters( 'woocommerce_email_format_string', str_replace( $find, $replace, $string ), $this );