Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
/**
* Google Maps filter
*
* @author Robert DeVore <deviodigital@gmail.com>
* @link https://www.wordpress.org/plugins/delivery-drivers-for-woocommerce/
* @return string
*/
function acme_google_maps_delivery_address( $google_map, $delivery_address, $store_address ) {
// Change the google map.
$google_map = 'DO YOUR THING';
return $google_map;
}
add_filter( 'ddwc_delivery_address_google_map', 'acme_delivery_address_google_map', 10, 3 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment