- 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.
