woocommerce_get_base_location
Get the store's base location.
Использование
add_filter( 'woocommerce_get_base_location', 'wp_kama_woocommerce_get_base_location_filter' ); /** * Function for `woocommerce_get_base_location` filter-hook. * * @param $option * * @return */ function wp_kama_woocommerce_get_base_location_filter( $option ){ // filter... return $option; }
- $option
- -
Список изменений
С версии 2.3.0 | Введена. |
Где вызывается хук
woocommerce_get_base_location
woocommerce/includes/wc-core-functions.php 1294
$default = apply_filters( 'woocommerce_get_base_location', get_option( 'woocommerce_default_country', 'US:CA' ) );