BACK TO DIRECTORY

Disable logout confirmation

by MirrorORG

0.0
(0 ratings)

When a logout link has no security token — a menu item pointing to wp-login.php?action=logout, a cached page, or the WooCommerce “Log out” link in some themes — WordPress shows “You are attempting to log out of… Do you really want to log out?” and WooCommerce shows “Are you sure you want to log out? Confirm and log out”. Visitors have to click a second time.

This plugin logs the user out straight away instead.

  • Works with WordPress logout links (wp-login.php?action=logout).
  • Works with the WooCommerce My Account “customer-logout” endpoint.
  • Honors a safe redirect_to parameter on the link, the WooCommerce logout redirect page if one is set, and the standard logout_redirect filter.
  • No settings, no database tables, no external requests.

Developers can change the destination with the dlc_logout_redirect_url filter.

Plugin Details

Active Installs
0
Total Downloads
271
Version
1.0.0
Requires WP
5.6
Requires PHP
7.4
Tested Up To
7.1.3
Added
2026-10-15
Last Updated
2026-10-15 12:33am GMT

Ratings

5
0
4
0
3
0
2
0
1
0