Similar to Users & Permissions plugin, how can I customize what the Administration Roles (Author, Editor, Super Admin) can do?
What I’m looking for is -
- Showing different Left Menu contents based on the admin role
- Limit api call (created from the local plugin) based on the admin roles. I can see that I can set these api limitation inside the Users & Permissions plugin, but what about for Administration Roles?
Because I’ve created several local plugins where each plugin page contains custom form with several buttons to call certain api action. Now how can I call this api based on the Administration Roles?