I have an admin menu page with sub menus. The plugin is fully functional for administrators. I’ve looked at the links you provided. I’m familiar with all of them, and see how the different functions work.
Though, I am yet to understand how I can use that to make the plugin visible to the ‘Editor’ role in their admin panel. I’ve tried running the current_user_can
at the plugins init, but to no avail.
I guess I figured out how to make certain functions inside the plugin avaliable for different roles, but the plugin isn’t showing, so the roles can’t access it.