[wp-trac] [WordPress Trac] #16411: Custom Login and Registration URLs

WordPress Trac wp-trac at lists.automattic.com
Sun Jan 30 16:40:54 UTC 2011

#16411: Custom Login and Registration URLs
 Reporter:  danielpataki  |      Owner:
     Type:  enhancement   |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  normal        |   Keywords:
 For bigger websites it would be beneficial to allow custom registrations
 by being able to change the login and registration urls. You can change
 the login url in a haphazard way now like this, but this is not very good.

 function bsb_login_url($redirect_to) {
         $redirect_to = str_replace(get_bloginfo("url").'/wp-login.php',
 '', $redirect_to);
         $link = get_bloginfo("url")."/login/".$redirect_to;
         return $link;
 add_filter( 'login_url', 'bsb_login_url' );

 Looking at wp-login.php, the registration link is output like this:

 <a href="<?php echo site_url('wp-login.php?action=register', 'login')
 ?>"><?php _e('Register') ?></a>

 If, by using a filter, hook, or even a definition in the config file, you
 could change the url output here that would be nice.

Ticket URL: <http://core.trac.wordpress.org/ticket/16411>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list