How to change the Driver Dashboard endpoint title

0 minutes, 26 seconds

By default, the Delivery Drivers for WooCommerce plugin adds a “Driver Dashboard” menu item to the My Account page.

If you would like to change this text to something else, you can use our included filter:

ddwc_my_account_menu_item_driver_dashboard

Below is the code snippet you should add to your theme’s functions.php file or in a custom plugin.

<?php
/**
* Change "Driver Dashboard" endpoint title
*
* @return string
*/
function acme_endpoint_title() {
return esc_attr__( 'NEW TITLE HERE', 'acme-lang' );
}
add_filter( 'ddwc_my_account_menu_item_driver_dashboard', 'acme_endpoint_title' );

Now your dashboard title will show whatever you changed it to. For example:

Was this article helpful?