- Log into the cpanel.
- Open File Manager under Files & Security.
- Locate the file wp-config.php and check the box to select it.
- Click Edit in the menu bar at the top of your screen.
- Search wp-config for define(‘DISALLOW_FILE_EDIT’, it is usually located towards the bottom.
- If you’ve found it, check it’s set to “true” (see below). If it’s not there, you need to add it to the bottom of the file, like this:
define('DISALLOW_FILE_EDIT', true);
Click Save at the top of your screen.
Tip: If you want to temporarily allow file editing, you can simply replace “true” with “false”. Change it back when you are done editing.