redirect away from login page
-
Hi Jeff,
I Found out that I have use this code:
“function tml_template_redirect() {
global $theme_my_login;if ( $theme_my_login->is_login_page() ) {
if ( is_user_logged_in() && ‘logout’ != $theme_my_login->request_action ) {
$redirect_to = home_url();
wp_redirect( $redirect_to );
exit;
}
}
}
add_action( ‘template_redirect’, ‘tml_template_redirect’ );”but after I copied in function.php,
my home page is blank page!
please advise?Thanks
Kambiz
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘redirect away from login page’ is closed to new replies.