"redirecting wordpress's login/register page to a custom login/registration page" Code Answer

5

For this you need to redirect login/registration page to your custom pages. So, Write this code in your functions.php file Under your activated theme folder. Pass your custom page path as a Argument.

 add_action('init','possibly_redirect');

function possibly_redirect(){
 global $pagenow;
 if( 'wp-login.php' == $pagenow ) {
  wp_redirect('http://google.com/');
  exit();
 }
}
By mo.m.eg21-14af6a439e74 on August 13 2022

Answers related to “redirecting wordpress's login/register page to a custom login/registration page”

Only authorized users can answer the search term. Please sign in first, or register a free account.