Quantcast
Channel: prakashmca007
Viewing all articles
Browse latest Browse all 33

Allow Editor to manipulate Menu in wordpress

$
0
0

Allow Editor/user to Edit Theme options MENU
you can add capabilities to the editor role using the role object and add_cap from you functions.php

Place the following code in functions.php

<?php
   // get the the role object
   $editor = get_role('editor');
   // add $cap capability to this role object
   $editor->add_cap('edit_theme_options');
?>

you can also remove capabilities:

$editor->remove_cap('delete_posts'); 

just take a look at the list of capabilities and what each one means.



Viewing all articles
Browse latest Browse all 33

Trending Articles