I have a log out link in the main header menu, when you click on the link to log out, you are redirected to the page asking if you really want to log out. I know it's doing this because there is no nonce in the menu URL.
My question is: is it even possible to add a nonce in CMS appearance>menus in the edit menus screen? The url is something like:
Just for giggles I tried adding
wp_create_nonce('logout') to the end but of course it doesn't' work.
If this isn't possible is there another way to bypass the 'are you sure you want to log out' screen?