Viewing 4 posts - 1 through 4 (of 4 total)
The topic ‘[ Resolved ] How get logout link’ is closed to new replies.
Hi!
I would like to know if has a code or link to logout.
i see in the template code something like this:
<?php if (isset($args[‘permalink’])) {
userpro_logout_link( $user_id, $args[‘permalink’], $args[‘logout_redirect’] );
} else {
userpro_logout_link( $user_id );
} ?>
And i have my own template that needs only the link.
Its possible?
You can use userpro_logout_url ($user_id, $redirect=’current’, $logout_redirect=null) instead of userpro_logout_link 🙂 this outputs the URL only without the anchor tag so you can customize its appearance and get the same logout URL.
Hope this helps!
Hi!! Thanks!
I try the <?php echo wp_logout_url(‘http://URL’); ?> and works,
but your method is great!!! 😀 thank you so much! 😀
The topic ‘[ Resolved ] How get logout link’ is closed to new replies.