Allow WordPress Editors Access to Widgets & Menus

This is something that I have been pondering for a while now and that is how to allow WordPress users that are the editor role to be able to manage widgets and menus. Sometimes although you don’t want these users to have admin rights on the site they may need to edit the sites widgets and menus. Having watched Andrew Nacin’s talk on titled “Current User Can Watch This Talk”¬†he gave an excellent example of a really easy way to do this. Just pop the code below into your themes functions.php file or better still into a plugin.