Skip to content

Instantly share code, notes, and snippets.

@tech4him
Created June 24, 2017 22:21
Show Gist options
  • Save tech4him/ab627bf347f6a909b7f30acc618f72c8 to your computer and use it in GitHub Desktop.
Save tech4him/ab627bf347f6a909b7f30acc618f72c8 to your computer and use it in GitHub Desktop.
Geodirectory Override Login / Signup / Forgot Password URLS
// 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