Skip to main content

Questions tagged [logout]

0 votes
0 answers
39 views

I triy to add a ‘logout’ button on the main nav menu under ‘account’ parent menu. But, the button does not rendor. At Appearance > Menus, I add ‘account’ page to the active menu. (link enabled) I ...
Chris's user avatar
  • 1
0 votes
1 answer
82 views

We run WordPress with the OpenID Connect Generic Client plug-in to provide SSO using Keycloak. Currently, we are looking for a way to log users out of WordPress without having them visit WordPress in ...
Pida's user avatar
  • 103
1 vote
1 answer
79 views

Context: a custom plugin My goal: i need to redirect user to another site after a logout I wrote these error_log("test of error logging"); add_action('wp_logout', function () { error_log(&...
realtebo's user avatar
  • 267
0 votes
1 answer
86 views

I'd like to forcefully log users out when their role is changed. For example, if a user is logged into the site and has an existing role of 'Editor' and I change the role to 'No role for this site', ...
Ryan's user avatar
  • 95
1 vote
0 answers
126 views

I'm having a problem with nonce verification. The theme I'm using has an AJAX login form that has nonce as a hidden field. It normally goes to my account page after a logout, and I can re-login from ...
FlyingFish's user avatar
0 votes
1 answer
505 views

I'm using a custom url for the login of my WordPress site. I've added this code in my functions.php file /** Hide default login */ function hide_default_login() { //Only proceed for guests if ...
OHICT's user avatar
  • 133
0 votes
1 answer
193 views

I've been following this guide on how to change your login url : https://www.malcare.com/blog/change-wordpress-login-url/ However, upon adding the logout, login and lost password hooks, I've noticed ...
dvm node's user avatar
0 votes
1 answer
195 views

I'm trying to redirect users when they visit my page template template-logout.php, but I keep getting the Wordpress "Do you really want to logout?" question despite wpnonce being generated. ...
Osu's user avatar
  • 1,452
1 vote
1 answer
1k views

Update: This question was initially about how to log a user out without confirmation, but from a "pretty" URL without a logout nonce. However, in retrospect I realize this is a security ...
N.D.'s user avatar
  • 15
0 votes
2 answers
2k views

Is it possible to hide a specific dynamically created div from user that is logged out? I have tried this but doesnt work: <?php if (is_user_logged_in()): ?> var element = document....
Ryan's user avatar
  • 5
0 votes
0 answers
40 views

I'm logged in with "Remember me" checked. I then click the logout link. At this point I appear to be logged out - I can no longer access member-only pages, and menus that only appear for ...
Llaves's user avatar
  • 101
1 vote
2 answers
883 views

I'm wondering if it's possible to logout all users 2 times a day using the function wp_logout() ? I see loads of plugins who can logout idled users but we want to log out every single users twice a ...
Mand's user avatar
  • 111
0 votes
1 answer
677 views

Please help . I need to add class to this button if user is not logged in <?php echo apply_filters( 'my_order_html', '<button type="submit" class="ADD-CLASS-HERE cfw-primary-btn ...
Teymur Abbasov's user avatar
0 votes
0 answers
35 views

I am using two wp_logout_url() echoes on page. The first one is used in header.php custom theme file, second one is used in another page template file (page-[customslug].php). On that page i have a ...
X9DESIGN's user avatar
  • 179
0 votes
1 answer
334 views

Long story short. In wp-config.php: define('WP_DEBUG', true); define('WP_DEBUG_DISPLAY', false); define('WP_DEBUG_LOG', true); In the main file of my plugin, in the constructor: public function ...
assistbss's user avatar
  • 153

15 30 50 per page
1
2 3 4 5
10