Redirecting Wordpress's Login/Register page to a custom login/registration page..

IN SOME CASES we have been used the plugin for the custom login, registration page. OR we have created our pages using custom codes for Login and register page. In that cases there are two Login and registration page in the websites, We can make redirect to the user to only see one page. For this we only need a Url of the Login or register page. Suppose i am using Pie Register Plugin in the website. my new Login page url is : http://www.example.com/pie-register-login/, You can use any plugin. just check your Login page Url. Then use the below code in Functions.php file:

add_action('init','login_redirect');

function login_redirect(){
 global $pagenow;
 if( 'wp-login.php' == $pagenow ) {
  wp_redirect('http://www.example.com/pie-register-login/');     // Here put your Login page Url
  exit();
 }
}
By replacing your Url with http://www.example.com/pie-register-login/, Your site will come up with one Login page.