Created
October 4, 2019 19:08
-
-
Save robertdevore/fa9cc4ff949455a6f0ba6809187f22ab to your computer and use it in GitHub Desktop.
Filter the Assigned Orders table Order URL
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
<?php | |
/** | |
* Order details URL | |
* | |
* Change the order details URL that is used on the Driver Dashboard, inside | |
* of the assigned orders table. | |
*/ | |
function acme_driver_dashboard_assigned_orders_order_details_url( $url, $orderid ) { | |
$url = 'YOUR_URL_HERE'; | |
return $url; | |
} | |
add_filter( 'ddwc_driver_dashboard_assigned_orders_order_details_url', 'acme_driver_dashboard_assigned_orders_order_details_url', 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment