woocommerce_shipping_address_map_url
Использование
add_filter( 'woocommerce_shipping_address_map_url', 'wp_kama_woocommerce_shipping_address_map_url_filter', 10, 2 ); /** * Function for `woocommerce_shipping_address_map_url` filter-hook. * * @param $url * @param $that * * @return */ function wp_kama_woocommerce_shipping_address_map_url_filter( $url, $that ){ // filter... return $url; }
- $url
- -
- $that
- -
Где вызывается хук
woocommerce_shipping_address_map_url
woocommerce/includes/class-wc-order.php 953
return apply_filters( 'woocommerce_shipping_address_map_url', 'https://maps.google.com/maps?&q=' . rawurlencode( implode( ', ', $address ) ) . '&z=16', $this );