Logout and redirect using the WP Menu

I have a navigation hyperlink in my secondary menu, that will allow the user to logout:

enter image description here

Read More

However, the user is prompted with the following screen for confirmation, when clicking on the hyperlink in the secondary navigation menu:

enter image description here

I am currently using the following URL in the navigation menu to redirect the user back to the Accounts page, as a temporary measure:

http://mywebsitenamehere.com/wp-login.php?action=logout&redirect_to=http://mywebsitenamehere.com/my-account/

Is there a way that I can use the WordPress menu above, and place in an appropriate URL to log the user out without the confirmation screen, and then send them back to the page that they were previously on?

Related posts

Leave a Reply

1 comment