DarKMaSk
Active member
- Nov 17, 2020
- 306
- 78
- 43
- Title for your fault: Want to make a custom role to restrict an admin to access certain area
- Fault Description: I am unable to create a Custom Role with which I can restrict an admin to access certain areas in Admin Dashboard of WordPress.
- What have you done to try to fix the issue: I am not a coder but I do edit some code by Google-ing. I tried to make a MU-PLUGIN which remained unsuccessful. I tried to add functions in the site theme's functions.php file but could not make it work as per my desire.
- What I want to do: I am building a hotel website with wordpress. Now, I have to give my client the admin access to manage the booking only. All menus / options on the left side panel will be inaccessible and hidden except the booking option. I prefer using a method which will not be destroyed / changed with the update of the theme. I have attached a screenshot with multicoloured markings and their explanations for better understanding. So far, I have successfully hide the rest of the menu / links / options on the left panel using some code in functions.php file of the theme I used but have failed to hide the red-marked area. Can you guys help me? Please guide me.
Reference image:
