-2
  • I created a new plugin including a admin menu (add_menu_page)
  • I created also a new role "my_plugin_admin_role" Now I would like to add my plugin menu only to my new role. How can'I do this.

Sorry for my bad English.

medkhelifi
  • 1,071
  • 3
  • 17
  • 35

1 Answers1

1

Add capability for you new role and use this capability in add_menu_page.

you can use this referral link

Community
  • 1
  • 1
Yatendra
  • 1,310
  • 1
  • 18
  • 31