• safeinsanity

    (@safeinsanity)


    Hi guys,
    I am unsuccessfully trying to remove a menu link in the dashboard menu on the left side that says “profile”. I have tried doing this with plugins but the plugins do not even show the “profile” link as an option to remove. It’s like it’s hidden or something?

    Anyways, here is a photo so you can see what I am talking about:
    https://i.ibb.co/T4Xkwny/profile-button-wp.png

Viewing 3 replies - 1 through 3 (of 3 total)
  • Howdy_McGee

    (@howdy_mcgee)

    Are you wanting to remove it for all users or just non-admin users? Are you looking to do this with a plugin or are you looking for PHP code to use?

    Thread Starter safeinsanity

    (@safeinsanity)

    Are you wanting to remove it for all users or just non-admin users?

    All users. I am using the Peepso plugin for user profiles.

    Are you looking to do this with a plugin or are you looking for PHP code to use?

    It doesn’t really matter to me, whatever works.

    Hi,

    You can try this code in themes function.php, worked for me. Hopefully should work for you as well

    //Remove Profile Menu from Dashboard
    function remove_profile_menu() {

    remove_submenu_page(‘users.php’, ‘profile.php’);
    remove_menu_page(‘profile.php’);
    }

    add_action(‘admin_menu’, ‘remove_profile_menu’);

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to remove “Profile” menu link from Dashboard?’ is closed to new replies.