Created
April 20, 2020 03:28
-
-
Save robertdevore/bc1a1abaca7135a1a08b701f93596139 to your computer and use it in GitHub Desktop.
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 | |
/** | |
* 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' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment