Let’s say we’ve customized a beautiful user registration form, with extra fields, well-designed interface blending nicely with the theme. But how about when you type in this url:
http://url/wp-login?action=register
Well, because we allow “Anyone can register” in general settings, the register link is open to public. Which will lead visitors to the default registration page you wanted to hide at the first place.
Don’t worry, put following code in function.php or your custom plugin (my favorite method), and change the “registraion-url” to slug of your custom registration page.
// Redirect Registration Page function my_registration_page_redirect() { global $pagenow; if ( ( strtolower($pagenow) == 'wp-login.php') && ( strtolower( $_GET['action']) == 'register' ) ) { wp_redirect( home_url('/registration-url')); } } add_filter( 'init', 'my_registration_page_redirect' );