Disable File Editing function

by Ann   Last Updated May 13, 2018 00:08 AM

Researching fixing errors while validating my site, I got brave and clicked Enable button at Appearance > Editor and went pass the "warning" - now getting nervous bc don't want to accidentally mess something up, I would like to reverse that decision and "Disable" that option so that i don't access that section right now. Can i just flip a button to return to the page showing Enable file editing without touching the code? Thanks... (ps... I'll have to keep looking for the better way to fix the errors showing up on the validator.)

Tags : css html editor code

Answers 1

There is no "Enable" button I'm aware of, but if you want to fully disable file editing, then that's easy.


Add this line to your wp-config.php file:

define('DISALLOW_FILE_EDIT', true);

No more file editing in WordPress.

May 13, 2018 00:01 AM

Related Questions

Wordpress editor stripping HTML

Updated October 16, 2018 20:08 PM

How to make shortcode which returns HTML?

Updated May 17, 2015 21:03 PM

Visual/Text tabs in wp editor Not Showing

Updated August 17, 2016 08:03 AM

Cleaning wordpress output

Updated February 11, 2017 13:45 PM

Broken page - please help find the error!

Updated April 04, 2017 11:08 AM