woocommerce_email_setup_locale
Использование
add_filter( 'woocommerce_email_setup_locale', 'wp_kama_woocommerce_email_setup_locale_filter' ); /** * Function for `woocommerce_email_setup_locale` filter-hook. * * @param $true * * @return */ function wp_kama_woocommerce_email_setup_locale_filter( $true ){ // filter... return $true; }
- $true
- -
Где вызывается хук
woocommerce_email_setup_locale
woocommerce/includes/emails/class-wc-email.php 346
if ( $switch_email_locale && $this->is_customer_email() && apply_filters( 'woocommerce_email_setup_locale', true ) ) {