In certain cases, when attempting to edit email templates in your MainWP Dashboard (such as the template used for Uptime Monitoring notifications), the changes may not be saved and the content resets after refreshing the page.
This behavior is caused by a WordPress configuration constant defined in your site’s wp-config.php file:
define('DISALLOW_FILE_EDIT', true);
This setting disables the ability to modify theme and plugin files through the WP Admin interface, which also impacts the ability to edit email template files via the MainWP Dashboard GUI.
How to Identify if This is Enabled
You can tell that file editing is disabled if you do not see these options in the WP Admin of your Dashboard site:
- Plugins > Plugin File Editor
- Appearance > Theme File Editor
How to Fix It
To enable email template editing via the Dashboard interface, you need to remove or set this constant to false in your wp-config.php file.
- Connect to your Dashboard site via FTP or file manager.
- Open the wp-config.php file.
- Look for the line that says:
define('DISALLOW_FILE_EDIT', true);- Either remove the line completely, or change true to false:
define('DISALLOW_FILE_EDIT', false);