Skip to main content
Bala Krishnan D's user avatar
Bala Krishnan D's user avatar
Bala Krishnan D's user avatar
Bala Krishnan D
  • Member for 4 years, 7 months
  • Last seen more than 3 years ago
  • Injambakkam, Chennai, Tamil Nadu, India
Loading…
awarded
Loading…
comment
Enable a role named 'backend_user' to access my plugin pages
I am looking at enabling the my custom plugin 'options' only and NOT WordPress Plugins . And I am looking at give access of my custom plugin setting/option pages to selective role called backend_user . In simple exhibit: ```` ->Dashboard ->**My plugin menu** ->Profile ->Collapemenu ```` Following code has partially open the My plugin menu for role "backend_user" but unfortunately the page/callback are restricted. add_menu_page( $page['page_title'], $page['menu_title'], 'backend_user', $page['menu_slug'], $page['callback'], $page['icon_url'], $page['position'] );
comment
Enable a role named 'backend_user' to access my plugin pages
attaching complete SettingApi.php link Also, I just created a role and haven't set any capability and wondering were to add. Please suggest.
Loading…