Menu-new
Close
< All Topics
Print

Disable file editing in WordPress admin

File to edit: wp-config.php

Open the file and search for DISALLOW_FILE_EDIT to see if you have the line already.
If not paste, paste the code just before /* That’s all, stop editing! Happy blogging. */

				
					define ('DISALLOW_FILE_EDIT', true);
				
			

then save the file

If you want to temporarily allow file editing, you can simply replace ”true” with ”false”.Change it back when you are done editing.

Tags:
Table of Contents