Call Login / Logout Page
-
Hi,
I’m new with wordpress and TML. I’d like to create an Header on my page. On the headers right area I’d like to place an user area, where he can log in, log out, edit his profile data etc. But I don’t know how to call the TML-pages for executing the TML pages for log in, log out etc. within my php code for the header. The following code works, but it’s wordpress functions. Is this the correct way?<div class="user-area"> <?php if(is_user_logged_in()): ?> <a href="<?php echo wp_logout_url( get_permalink() ); ?>">Logout</a> <?php else : ?> <a href="<?php echo wp_login_url(get_permalink()); ?>">Login</a> <?php endif; ?> </div>
Can somebody help?
thanks
Bernhard
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Call Login / Logout Page’ is closed to new replies.