Last active
July 29, 2019 17:54
-
-
Save robertdevore/967876f8eadb1c35b63efc837f610797 to your computer and use it in GitHub Desktop.
Add the delivery address as text on the driver details page along with the Google Map
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Add delivery address as plain text above the Google Map on driver's order details page | |
*/ | |
function acme_delivery_address_google_map( $google_map, $delivery_address, $store_address ) { | |
// Append delivery address to Google Map. | |
$google_map = '<p>' . $delivery_address . '</p>' . $google_map; | |
echo $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