looking for example how to incorperate roles in custom plugin


I am looking for an Howto/example on User roles in WordPress. For example

  • I want users to be able to login to the wp-admin site, but only be able to access my custom plugin menus/pages. Nothing else, so no messages, plugins, users, etc.
  • How can i set the use of a certain method to a certain role. In my customisations for salesforce or custom c# programms i could set the role on top of a method. like [OnlySuperUser].

Perhaps it isn’t possible or i am doing it all wrong ;-). All feedback is welcome

Best regards, Marcel

Marcel Vreuls 2 years 2020-11-03T03:10:38-05:00 0 Answers 11 views 0

Leave an answer