How to customize the login redirect URL in Delivery Drivers for WooCommerce

20 seconds

By default, when a user with the ‘driver’ role signs into your website, they’re redirected to the Driver Dashboard page.

You can change this redirect URL with this built in filter:

ddwc_driver_dashboard_login_redirect

Add the code snippet below to your theme’s functions.php file and it will change the date format.

<?php
/**
* Change redirect URL for driver login
*
* @url https://wordpress.org/plugins/delivery-drivers-for-woocommerce
* @return string
*/
function acme_login_redirect( $link ) {
// Change the value to your full my-account URL (https://etc)
$link = 'YOUR_URL_HERE';
return $link;
}
add_filter( 'ddwc_driver_dashboard_login_redirect', 'acme_login_redirect' );

Was this article helpful?