Admin Menu Editor
Log Out link & hide Profile? (2 posts)

  1. Zoinks! Graphics
    Posted 4 years ago #

    I've removed the "Howdy User" dropdown in my admin header so need to have a Log Out somewhere. Is there a way to use Admin Menu Editor to create a "Log Out" link in the left column menu? I see the ability to create a New Menu item and there are quite a few URL options in the dropdown, but unfortunately logout is not among them. I can put in "/wp-login.php?action=logout" as the URL but without the dynamic wpnonce value it always takes an extra step to logout. Using Advanced Options I can set a Hook Name. Is that something that can be parsed in the functions.php to produce the wp_logout_url() via add_action or add_filter? Or is there something WAY simpler I'm not seeing?

    And somewhat related, I don't want my blog's contributors to have the ability to edit their profiles. I've been able to limit access to the Users menu and submenus, but is there a way to remove the Profile menu when a non-admin is logged in?

    Thanks in advance!



    PS: Sorry if this is coming thru as a double-post. I kept getting a "This topic has been closed" error when I tried to update it. The recommendation in threads about that error was that it's a bug and to re-post, soooo....

  2. It's not 'closed', you're getting trapped by the over excited spam tool :) Sorry about that.

    I've kicked it a bit for ya.

    FYI - If you use the WP admin bar (the grey one that shows on the top), it has a built in logout feature.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic