Wp Login Php Redirect

[Solved] Wp Login Php Redirect | Groovy - Code Explorer | yomemimo.com
Question : wp-login.php redirect

Answered by : bewildered-beetle-mc64emqlh82y

add_action('init','custom_login');
function custom_login(){ global $pagenow; if( 'wp-login.php' == $pagenow ) { wp_redirect('http://localhost/wordpresstest/blog/'); exit(); }
}

Source : https://stackoverflow.com/questions/36282064/hide-wp-login-php-as-log-in-and-redirect-it-to-a-custom-login-page | Last Update : Wed, 17 Aug 22

Answers related to wp login php redirect

Code Explorer Popular Question For Groovy