Stimo
Stimo

Reputation: 1

In the Wordpress Admin Menu, how can I hide a menu item but still allow everyone to have access to it?

I have successfully removed it from view before but a standard user lost access to that page, basically saying they did not have the permissions...

I want all users to have access to the hidden page.. I just don't want them to be able to see it in the admin menu on the left.

Is this possible?

Upvotes: 0

Views: 72

Answers (1)

Nicolas J
Nicolas J

Reputation: 63

You can try with the remove_menu_page function :

add_action( 'admin_menu', 'remove_menus' );

function remove_menus(){
    remove_menu_page( 'profile.php' );
}

Upvotes: 1

Related Questions