New answers tagged

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($...
user avatar
  • 131
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/
user avatar

Top 50 recent answers are included