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.5.1

apply_filters('woocommerce_shipping_address_map_url_parts') is found 1 times:

  • /includes/class-wc-order.php line 993
     
    		// 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.