New answers tagged logout
0
votes
How to log out without confirmation 'Do you really want to log out?"?
To bypass logout confirmation prompt define _wpnonce for log-out action in the URL like this:
$log_out_url = add_query_arg('_wpnonce', wp_create_nonce('log-out'), wp_logout_url());
wp_safe_redirect($...
0
votes
After logout browser's back button into twenty sixteen theme profile
Not sure if this will help anyone.
But I was able to redirect my URL after logout in the URL parameters.
https://example.com/wp-login.php?action=logout&redirect_to=https://example.com/persona/
Top 50 recent answers are included
Related Tags
logout × 130login × 45
redirect × 20
session × 14
cookies × 12
menus × 11
php × 10
functions × 7
wp-login-form × 7
users × 6
plugin-development × 5
multisite × 5
nonce × 5
plugins × 4
customization × 4
user-roles × 4
woocommerce-offtopic × 3
ajax × 3
admin × 3
errors × 3
security × 3
authentication × 3
javascript × 2
wp-admin × 2
hooks × 2