# Used a code to revoke some dashboard menus for my contributors but for some reason it's revoked me access to the editor [closed]

I was hoping to limit the access that my new team of contributors have through the dashboard; and stumbling this video on YouTube on how to possibly limit this; i thought i'd give it a shot.

define( 'DISALLOW_FILE_EDIT', true);

}

}


Is it possible to rollback or have the entire code removed without completely restarting my entire site again.

Thanks, Aaron

## closed as off-topic by fuxia♦Jul 31 at 16:15

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

Issue #1

This line of code define( 'DISALLOW_FILE_EDIT', true); does not go into functions.php. It should be removed from function.php and put in your config file, wp-config.php in the root of your WP install.

Here is more info on what DISALLOW_FILE_EDIT does.

Issue #2

if(current_user_can( 'administrator' )){
}


That is saying if the user is an admin remove your menus. Sounds like you want the opposite of that so you should be able to do something like this...

if(!current_user_can( 'administrator' )){

• Whenever somebody says "your functions.php file" in reference to WordPress, they mean the wp-content/themes/{your theme}/functions.php file. Never edit wp-includes/functions.php. – Jacob Peattie Jul 31 at 15:46