Created
June 24, 2017 22:21
-
-
Save tech4him/ab627bf347f6a909b7f30acc618f72c8 to your computer and use it in GitHub Desktop.
Geodirectory Override Login / Signup / Forgot Password URLS
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
// Login | |
add_filter('geodir_login_url','_my_geodir_login_url',10,3); | |
function _my_geodir_login_url($login_url,$args,$gd_page_id){ | |
if(isset($args['signup'])){ | |
//registration URL | |
$login_url = '/login'; | |
} elseif(isset($args['forgot'])) { | |
//forgot password URL | |
} else { | |
// regular login URL | |
} | |
return $login_url; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment