Toggle WP File Editing (WebUI Method)
- Log into the cPFence WebUI and select the target server.
- Go to Tools & Utilities ➜ WP-AutoShield Bulk Tools.
- Use the optional site selector if you only want to change certain installs.
- Open Disable File Editing in WordPress Admin to harden, or Enable File Editing in WordPress Admin to restore the editor.
- Click the action button and let cPFence rewrite
wp-config.phpaccordingly across every chosen site.
Disabling the editor is recommended for security, but you can temporarily re-enable it for trusted developers without SSH access.
Tip: Ensure autoshield_disable_wp_file_edit is set to ‘Off’ in the Settings page (if it’s currently on), or WP-AutoShield will automatically re-disable it during the next 6:10 AM run.
Command Line (CLI) Method
- SSH into the host server.
- Disable editing everywhere:
cpfence --bulk-disable-wp-file-edit - Re-enable when needed:
cpfence --bulk-enable-wp-file-edit
Remember to reapply AutoShield settings afterward if you rely on the daily automation to keep editors disabled.
Need Further Assistance?
Visit our Knowledgebase or contact our support team for help.
