Need to change a code menu.php in the wp-admin folder.
Do I edit this file in the parent theme?
Or do I copy the entire wp-admin folder to my child theme folder?
Frederick
Need to change a code menu.php in the wp-admin folder.
Do I edit this file in the parent theme?
Or do I copy the entire wp-admin folder to my child theme folder?
Frederick
/wp-admin is not found in any theme. Do not copy the wp-admin directory to a theme folder. Nothing goes in a theme folder but theme files. You should not be editing any file located in /wp-admin. Those are wordpress core files. Don't confuse those with theme files.
I see what you mean.
I was thinking of making the following change which I have copypasted from a thread I found. (about disabling dashboard for lowlevel users)
Open 'menu.php' under wp-admin.php.
The very first line of code is
$menu[0] = array(__('Dashboard'), 'read', 'index.php');
The 2nd argument is the user permission - 'read' permission has default registered user.
Change 'read' to other user level such as 'edit_users' if you want make Dashboard only visible to Admin privilege.
$menu[0] = array(__('Dashboard'), 'edit_users', 'index.php');
Now default registered users only have one option - Profile.
Is this a bad idea?
It's only a bad idea because when you edit core files, they get overwritten on the next WordPress upgrade and you loose all your hard work. There is a very nice plugin solution for what I think you are trying to accomplish, though. I use it on a couple of installations. Very easy to use, and so far, it has worked perfectly for me.
"This plugin removes the Dashboard menu, the Personal Options section and the Help link on the Profile page, hides the Dashboard links in the admin bar menu (if activated), and prevents Dashboard access to users assigned to the Subscriber role. Useful if you allow your subscribers to edit their own profiles, but don't want them wandering around your WordPress admin section."
Give this a try and see what you think. WP Hide Dashboard
I usually do a google search on all changes I want to do, and surprisingly the best I could find (I must have been sloppy) was the wp-admin solution. :)
Perfect plugin. Love it!
Thanks for that!
Frederick
You're welcome. I'm glad it worked for you!
You must log in to post.