Hello, how can i restrict access for a custom module?
I have 2 active roles for clients: editor and author. Only the editor has full access to all modules. The author has only limited access to some modules. (i know about author to add capabilities for using BB; that’s done)
The best solution would be that the module is still viewable, but when opening up the settings; some text could be displayed saying: module is not in your subscription plan.
I tried alot with if( current_user_can(‘editor’)); but i have problems with the placement; cause the front-side has to work for not-logged in users; off course.
Can you help me out with some practical demo code how to restrict access to the custom beaver builder modules.