wordpress disable file mods

To disable file modifications in WordPress, follow these steps:

  1. Access your WordPress website's backend by logging into the admin dashboard.
  2. Navigate to the "Appearance" menu on the left-hand side of the dashboard.
  3. Click on "Theme Editor" from the sub-menu under "Appearance."
  4. On the right-hand side, you will see a list of theme files. Look for the file named "functions.php" and click on it.
  5. Once the "functions.php" file opens, scroll down to the bottom.
  6. Add the following line of code at the end of the file:

php define( 'DISALLOW_FILE_MODS', true );

This line of code will disable file modifications in WordPress. 7. Click on the "Update File" button to save the changes.

By following these steps and adding the provided code to the "functions.php" file, you will successfully disable file modifications in WordPress.