DarkCid
DarkCid

Reputation: 227

Wordpress special admin menu for a unique user

I have a custom menu in my wordpress back office created with this code in the functions.php file :

add_menu_page( 'Volunteers', 'Volunteers', 'edit_pages', 'volunteers.php', '', 'dashicons-groups', 23 );

I want to create a user who will access only this page in the back office. In other means, when connected, he only see in the left menu of the back office, the "Volunteers" menu.

How can I do that ?

PS: if it's possible, I want to make this possible without update the menu.php file in the directory wp-admin because this file is reinitialized with the wordpress updates.

Upvotes: 0

Views: 45

Answers (1)

Nuno
Nuno

Reputation: 26

You should try this wordpress plugin first: https://wordpress.org/plugins/adminimize/

;) NC

Upvotes: 1

Related Questions