Last active
November 21, 2020 07:08
-
-
Save robertdevore/937d4a94467464456a8b8e761463b443 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
/** | |
* Remove "Total" from driver dashboard assigned orders table head. | |
*/ | |
function acme_driver_dashboard_assigned_orders_order_table_thead( $thead ) { | |
unset( $thead[3] ); | |
return $thead; | |
} | |
add_filter( 'ddwc_driver_dashboard_assigned_orders_order_table_thead', 'acme_driver_dashboard_assigned_orders_order_table_thead', 10, 1 ); | |
/** | |
* Remove "Total" from driver dashboard assigned orders table body. | |
*/ | |
function acme_driver_dashboard_assigned_orders_order_table_tbody( $tbody, $order_id ) { | |
unset( $tbody[3] ); | |
return $tbody; | |
} | |
add_filter( 'ddwc_driver_dashboard_assigned_orders_order_table_tbody', 'acme_driver_dashboard_assigned_orders_order_table_tbody', 10, 2 ); | |
/** | |
* Remove "Total" from driver dashboard order details page. | |
*/ | |
add_filter( 'ddwc_driver_dashboard_order_total', '__return_false' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment