If you need to temporarily enable the Theme File Editor on a site that has MalCare enabled, you can do so by following the steps below.
This process works for both live and staging sites.
Warning: This should only be a temporary change; be sure to revert the wp-config.php code to its original state once the necessary changes have been made.
Edit wp-config.php
- Go to the File Manager.
For sites hosted with Valerian, you can do so through the Partner Portal, using the File Browser or FTP credentials.
For sites hosted elsewhere, log in to the host and use the File Manager.
- Locate the top-level folder for the site you need to enable access for and expand it.
- Navigate [site URL] > public_html > wp-config.php and edit the file.
- In the code, locate the line that reads:

- Change true to false, and save the changes.
Confirm editing access
To confirm access, log into the wp-admin for the site and hover over Appearance in the sidebar. If you see Theme File Editor in the options, the process is a success!

Remember to change the code back to its original state once the necessary changes have been made and access is no longer needed!
