Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Changing the registration link on dashboard login form


Brajesh Singh
Participant

@sbrajesh

hi,yes, you can.

Put this code in your current themes functions.php and it will make it work.

add_filter("site_url","my_custom_register_url",10,3);

function my_custom_register_url($url, $path, $orig_scheme)

{

if($orig_scheme=="login")

{

if($path=="wp-login.php?action=register")

return get_option('siteurl')."/register";

}

return $url;

}

Let me know it worked for you or not :)

Skip to toolbar