how to change the default login page of wordpress from wp-login.php to custom login page?

how to change the default login page of wordpress from wp-login.php to custom login page. So that any request for login by any user should redirect to custom login page instead of wp-login.php.

Answers


here's an answer from another answer, put in functions.php:

add_action('init','possibly_redirect');

function possibly_redirect(){
 global $pagenow;
 if( 'wp-login.php' == $pagenow ) {
  wp_redirect('http://google.com/');
  exit();
 }
}

Into "http://google.com/" enter the URL of the custom page.


Need Your Help

Getting return value from action with jquery.forms.js options...MVC3

jquery asp.net-mvc-3

Im including the popular file jquery.form.js. I have the following:

PHP Query not Outputting into a Table

php html mysql sql

So I have a query that is pulling most the info from a mysql db apart from one or two fields. I want to output the data into a table but I have been struggling due to the way the data is outputting...