WordPress at Your Fingertips
function is not described

WC_Order::get_shipping_address_map_url() public WC 1.0

Get a formatted shipping address for the order.

{} It's a method of the class: WC_Order{}

Return

String.

Usage

$WC_Order = new WC_Order();
$WC_Order->get_shipping_address_map_url();

Code of WC_Order::get_shipping_address_map_url() WC 5.6.0

public function get_shipping_address_map_url() {
	$address = $this->get_address( 'shipping' );

	// 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 );
}