woocommerce_my_account_my_address_description
Использование
add_filter( 'woocommerce_my_account_my_address_description', 'wp_kama_woocommerce_my_account_address_description_filter' );
/**
* Function for `woocommerce_my_account_my_address_description` filter-hook.
*
* @param $esc_html__
*
* @return
*/
function wp_kama_woocommerce_my_account_address_description_filter( $esc_html__ ){
// filter...
return $esc_html__;
}
- $esc_html__
- -
Где вызывается хук
В файле: /templates/myaccount/my-address.php
woocommerce_my_account_my_address_description
woocommerce/templates/myaccount/my-address.php 46
<?php echo apply_filters( 'woocommerce_my_account_my_address_description', esc_html__( 'The following addresses will be used on the checkout page by default.', 'woocommerce' ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>