User Access Role to custom plugin in Admin
-
Hello Everyone,
I have question about how can i User access role to custom plugin – http://prntscr.com/ac8dya ?
Currently I have built custom page – User Note – http://prntscr.com/ac8deg
The coding of page is below :-
add_action( ‘admin_menu’, ‘add_note_plugin’ );
function add_note_plugin() {
add_menu_page(‘User Notes’, ‘User Notes’, ‘manage_options’, ‘add-note-slug’, ‘add_note’);
add_submenu_page( ‘add-note-slug’, ‘User Notes’, ‘User Notes’, ‘manage_options’, ‘add-note-slug’, ‘add_note’);
add_submenu_page( ‘add-note-slug’, ‘Notes Submenu Page’, ‘Add New’, ‘manage_options’, ‘add-note-secondary-slug’, ‘add_new_note’);
}So This plugin shows only in “administrator User” not in other user type like Group Manager.
I have used 2 slug for User Notes – “add-note-slug” – “add-note-secondary-slug” and its show in group manger user – http://prntscr.com/ac8fc4
I have checked for both slug for Group Manager User but can’t show in group manager dashboard – http://prntscr.com/ac8gfg. – Please help me ASAP.
The topic ‘User Access Role to custom plugin in Admin’ is closed to new replies.