wordpress disable edit files
- Go to your WordPress dashboard.
- Click on "Appearance" in the left-hand menu.
- Select "Theme Editor" from the submenu.
- In the Theme Editor, locate the file you want to disable editing for.
- Click on the file to open it.
- Add the following code at the beginning of the file:
defined( 'DISALLOW_FILE_EDIT' ) or define( 'DISALLOW_FILE_EDIT', true );
- Click the "Update File" button to save your changes.