woocommerce_customer_default_location
Filter the customer default location before geolocation.
Использование
add_filter( 'woocommerce_customer_default_location', 'wp_kama_woocommerce_customer_default_location_filter' ); /** * Function for `woocommerce_customer_default_location` filter-hook. * * @param string $default_location_string The default location. * * @return string */ function wp_kama_woocommerce_customer_default_location_filter( $default_location_string ){ // filter... return $default_location_string; }
- $default_location_string(строка)
- The default location.
Список изменений
С версии 2.3.0 | Введена. |
Где вызывается хук
woocommerce_customer_default_location
woocommerce/includes/wc-core-functions.php 1390
apply_filters( 'woocommerce_customer_default_location', $default_location_string ?? '' )