Support » Plugin: User Role Editor » Add capabilities at ‘add_menu_page’

  • I have added one page using ‘add_menu_page’, Now I want to set capabilities like only admin and manager have full access for that pages, Could you please let us know I can set that ?

    What page created using ‘add_menu_page’ are not displaying in user capabilities

    Looking forward to your positive response..

    Thanks,
    HK

Viewing 1 replies (of 1 total)
  • Plugin Author Vladimir Garagulia

    (@shinephp)

    add_menu_page() just adds menu item to WordPress backend left side admin menu. This menu item is available to a user who can user capability used at this add_menu_page() function call. Nothing more.
    If you use some not existing capability, then it’s your (or user) responsibility to add such capability to a role in order users with that role can access this menu item.

Viewing 1 replies (of 1 total)
  • The topic ‘Add capabilities at ‘add_menu_page’’ is closed to new replies.