[ Resolved ] How get logout link – UserPro Forums https://forum.userproplugin.com/forums/topic/how-get-logout-link/feed/ Sat, 04 May 2024 06:32:41 +0000 https://bbpress.org/?v=2.6.2 en-US https://forum.userproplugin.com/forums/topic/how-get-logout-link/#post-17157 <![CDATA[[ Resolved ] How get logout link]]> https://forum.userproplugin.com/forums/topic/how-get-logout-link/#post-17157 Tue, 14 Jan 2014 16:16:00 +0000 Adriano Maia 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?

]]>
https://forum.userproplugin.com/forums/topic/how-get-logout-link/#post-17162 <![CDATA[Reply To: [ Resolved ] How get logout link]]> https://forum.userproplugin.com/forums/topic/how-get-logout-link/#post-17162 Tue, 14 Jan 2014 16:23:16 +0000 admin 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!

]]>
https://forum.userproplugin.com/forums/topic/how-get-logout-link/#post-17164 <![CDATA[Reply To: [ Resolved ] How get logout link]]> https://forum.userproplugin.com/forums/topic/how-get-logout-link/#post-17164 Tue, 14 Jan 2014 17:03:10 +0000 Adriano Maia Hi!! Thanks!
I try the <?php echo wp_logout_url(‘http://URL&#8217;); ?> and works,
but your method is great!!! 😀 thank you so much! 😀

]]>
https://forum.userproplugin.com/forums/topic/how-get-logout-link/#post-17176 <![CDATA[Reply To: [ Resolved ] How get logout link]]> https://forum.userproplugin.com/forums/topic/how-get-logout-link/#post-17176 Tue, 14 Jan 2014 19:13:06 +0000 admin You are welcome 🙂 Remember to rate our plugin

]]>