woocommerce_email_format_string_find
Usage
add_filter( 'woocommerce_email_format_string_find', 'wp_kama_woocommerce_email_format_string_find_filter', 10, 2 );
/**
* Function for `woocommerce_email_format_string_find` filter-hook.
*
* @param $legacy_find
* @param $that
*
* @return
*/
function wp_kama_woocommerce_email_format_string_find_filter( $legacy_find, $that ){
// filter...
return $legacy_find;
}
- $legacy_find
- -
- $that
- -
Where the hook is called
woocommerce_email_format_string_find
woocommerce/includes/emails/class-wc-email.php 395
$string = str_replace( apply_filters( 'woocommerce_email_format_string_find', $legacy_find, $this ), apply_filters( 'woocommerce_email_format_string_replace', $legacy_replace, $this ), $string );