woocommerce_shipping_address_map_url_parts

woocommerce_shipping_address_map_url_parts

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_shipping_address_map_url_parts') is found 1 times:

  • /includes/class-wc-order.php line 994
    0991
    0992
    0993
    0994
    0995
    0996
    0997
    0998
    0999
    1000
        // Remove name and company before generate the Google Maps URL.
        unset( $address['first_name'], $address['last_name'], $address['company'], $address['phone'] );
     
        $address = apply_filters( 'woocommerce_shipping_address_map_url_parts', $address, $this );
     
        return apply_filters( 'woocommerce_shipping_address_map_url', 'https://maps.google.com/maps?&q=' . rawurlencode( implode( ', ', $address ) ) . '&z=16', $this );
    }
     
    /**
     * Get a formatted billing full name.