looking for example how to incorperate roles in custom plugin

Question

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

0
Marcel Vreuls 3 months 0 Answers 11 views 0

Leave an answer