Skip to content

Instantly share code, notes, and snippets.

@robertdevore
Last active July 29, 2019 17:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robertdevore/967876f8eadb1c35b63efc837f610797 to your computer and use it in GitHub Desktop.
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
/**
* 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