Login link only for new users?
-
Hi !
I am trying to use this function in theme header to implement redirection for users while registering/logging<a href="<?php echo wp_login_url( get_permalink() ); ?>" title="Login">Login</a>At the same time I want to hide the link after logging in. Currently the link is appearing even for logged in users
So I have used :
<?php if ( is_user_logged_in() ) { echo 'Welcome, registered user!'; } else { echo 'Welcome, visitor!'; } ?>But the link is broken when I used it. Could anybody help me?
Thanks !
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Login link only for new users?’ is closed to new replies.