woocommerce_email_format_string хук-фильтр . WC 3.2.0
Filter for main find/replace.
Использование
add_filter( 'woocommerce_email_format_string', 'filter_function_name_8600', 10, 2 ); function filter_function_name_8600( $str_replace, $that ){ // filter... return $str_replace; }
- $str_replace
- -
- $that
- -
Список изменений
С версии 3.2.0 | Введена. |
Где вызывается хук
woocommerce_email_format_string
woocommerce/includes/emails/class-wc-email.php 310
return apply_filters( 'woocommerce_email_format_string', str_replace( $find, $replace, $string ), $this );