The logout tag has no wiki summary.
0
votes
0answers
7 views
Preexisting login to change to logout link in sub menu
I am using twenty twelve with a child theme. I have a link in my primary nav menu where I have an link for “My Account” which has a sub menu with a “Login/Register” link that redirects to a modified ...
0
votes
0answers
23 views
Get rid of persistent admin toolbar in WP MultiStite
We are running a WordPress MultiSite (with BuddyPress, if it's relevant). At some point recently all the sites that mapped domains to our network are having issues with persistent tool admin bar that ...
0
votes
0answers
10 views
How to add login/logout meta in custom menu? [duplicate]
I want to Login & Logout meta in my Wordpress website. When user is not login, in menu Login meta shown. When user logged in, menu shows logout meta. How it possible?
-1
votes
0answers
21 views
error code login index [closed]
your code runing index login bu error
[23-Apr-2013 21:22:44] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/ajansn/public_html/haber/index.php:1) ...
1
vote
1answer
122 views
Wordpress error on log out 'Not Permitted' and can't log out
I've got a weird situation whereby I sometimes can't log in as clicking on a link (or going directly) to /wp-login.php shows me a blank page with the words 'Not Permitted'.
If I go to the ...
0
votes
1answer
55 views
wp_logout_url($redirect) won't logout and redirect ()
Even that I got the code from the wp docs
<a href="<?php echo wp_logout_url( get_permalink() ); ?>" title="Logout">Logout</a>
This is the output when user clicks on it:
Warning: ...
1
vote
1answer
52 views
How to: PHP Log Out Link?
I originally came here to find help on creating a string of text that would display a login link, and when the user was logged in it would should their username. Travis Pflanz had the answer for ...
0
votes
1answer
218 views
Add Login and logout buttons to top menu bar
I got this code to insert menu bar in the PRIMARY menubar, but I can not find a way to insert it into my secondary, or top menubar above the primary menu bar.
Could anyone teach me how to do that?
...
1
vote
1answer
37 views
do_action appearing outside of menu?
I'm using Bill Erickson's "Add Extra Code to Any Menu" function:
<?php
/**
* Add Extra Code to Any Menu
* @author Bill Erickson
* @link http://www.billerickson.net/customizing-wordpress-menus/
...
3
votes
1answer
115 views
Clearing cookie on logout and session expiration
I would like to clear the session cookie when a user logs out or when their session expires. I understand that wp_clear_auth_cookie(); clears the cookie but I am struggling to understand how to ...
0
votes
0answers
75 views
I can't logout and no one else can login! [closed]
I used to be able to log in and out my site. However, after some recent updates, some of the links are broken, I get a blank page when clicking on the log out link or access the wp-admin login page ...
1
vote
1answer
173 views
Login/logout in header
I am looking to move the login / logout / my account / register details currently
situated under my menu bar to above the menu bar.
Essentially I want to add the details just after the header.
What ...
3
votes
1answer
247 views
Logout/login redirect CSS issue
I'm using WordPress Multisite. When I use wp_logout_url(), I get redirected to the login page but somehow I end at a different login page without any styles applied
<a href="<?php echo ...
1
vote
2answers
245 views
Redirect user after logout
I am trying to create an unsubscribe page for my members, but in order to see the unsubscribe form, they have to be logged out, so the first link is:
...
3
votes
1answer
238 views
Masking logout URL
The primary goal is to hide that the site is driven by wordpress. I've got the login part all locked up, but the logout URL still has those blasted wp delineators that give away it's a wordpress site. ...
1
vote
1answer
177 views
Get wp_logout_url function to work on external (non-Wordpress) page
I have blog and forum, and I need to put wordpress external logout link. What files do I need to add to make wp_logout_url(); work?
Thank you.
Title edited: [original title was]"External Logout link ...
0
votes
1answer
816 views
How to log out without confirmation 'Do you really want to log out?"?
Right now when I log out via:
<a href="<?php bloginfo('url'); ?>/wp-login.php?action=logout">Log out</a>
it redirects me to the page where I need to confirm the log out.
How to ...
0
votes
2answers
213 views
wp_logout logging everyone out instead of just the user that clicked the logout link!
I want to display a different menu depending whether a user is logged into the CMS or not.
I'm using this for my menu:
<?php if ( is_user_logged_in() ) {
$args = array(
'depth' => ...
0
votes
2answers
464 views
Add logout link when logged in, make it disappear when logged out?
I am trying to display a logout link when users are logged in and make it disappear when they are not logged in.
The code I have so far works for the login and register links due to a plugin that I ...
2
votes
2answers
494 views
How to change the default logout link on WordPress Admin
I want to use other link for logout because i have /wp-admin/* protected with htpassword. Is there a way to do this? Something like create a custom page like site.com/logout then use it as my new ...
1
vote
2answers
661 views
Logout redirect to home page
I'm using custom menu for login/logout here below is my code:
<li>
<?php
if (is_user_logged_in()) {
$user = wp_get_current_user();
echo 'Welcome <strong><a ...
0
votes
1answer
203 views
To Add Logout Button in Menu [duplicate]
Possible Duplicate:
How to use logout function on custom menu link?
I want to add a logout button at very last of my nav.. I Found a function
// functions.php
function ...
0
votes
1answer
194 views
Force Users To Relogin
I need a solution that i can use to force a user to logout via the admin panel of word press any help on this would be appreciated.
1
vote
1answer
339 views
wp_logout_url redirects to incorrect page because of pagination
Following a Wordpress Pagination tutorial, wp_logout_url( get_permalink() ); no longer redirects to the correct page. Instead of redirecting to say domain.com/page/2/, it redirects me to one of the ...
4
votes
1answer
1k views
How reduce wordpress login session timeout time?
I want to logout user autometically when user is idle for more than 10 minutes.That mean suppose user is logged in to a site and user didn't browse any pages for more than 10 mins.when he browse any ...
1
vote
3answers
442 views
add logout button on admin side menu
I want to add a logout button on the side admin menu (because I disable the admin bar for the users). So I thought add_menu_page() is the way to do it, but how to add the link to the regarded ...
1
vote
2answers
186 views
Logout redirects to /forums/
A while back I installed a plugin which, upon logout, re-directed users to /forums/.
Unfortunately, I have no idea which plugin that was and whether or not it's still active/installed.
What code/db ...
0
votes
2answers
326 views
I keep getting logged out in Firefox
For some reason, tonight when I have gone to work on my Wordpress installation I firstly found myself logged out, even though there was a few cookies left in Firefox relating to the website and when ...
2
votes
3answers
764 views
Logout redirect to current page - function
I'm looking for a function that can redirect users when they logout to the current page. I'm looking for a code I can use in functions.php?
4
votes
1answer
839 views
handling login/logout redirects
I have a couple issues with the way Wordpress handles redirects on login and logout.
Standard behaviour is:
login: /wp-login.php (with no redirect_to url) -> /wp-admin.php
logout: /wp-admin.php ...
0
votes
2answers
851 views
Ajax function returns -1
I have a question.
I made a simply ajax function.
When I'm logged in, it works perfectly.
When I'm logged out, it returns me -1 (since Wordpress 3.1)
Why ? I don't understand.
Precisely, it returns ...
2
votes
2answers
625 views
wp_nav_menu log in/out link?
I have a wp_nav_menu showing pages, but I'd also like to include a log in/out link, based on the current state of the user, which will redirect them to the home page.
I've looked far and wide, but ...
2
votes
1answer
409 views
WordPress failure when logging out
I have came across the WordPress logout error several times but I really never figured out the cause of it. In earlier days, it was generally that I was missing a nonce but now even with logout link ...
1
vote
1answer
906 views
wp_logout Not Logging Me Out
Here is what I'm doing:
wp_logout();
var_dump(is_user_logged_in());
var_dump returns:
bool(true)
Why is wp_logout() not logging me out?
