How to bulk Enable/Disable WordPress File Editing using cPFence Tools?

Toggle WP File Editing (WebUI Method)

 

  1. Log into the cPFence WebUI and select the target server.
  2. Go to Tools & UtilitiesWP-AutoShield Bulk Tools.
  3. Use the optional site selector if you only want to change certain installs.
  4. Open Disable File Editing in WordPress Admin to harden, or Enable File Editing in WordPress Admin to restore the editor.
  5. Click the action button and let cPFence rewrite wp-config.php accordingly 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

  1. SSH into the host server.
  2. Disable editing everywhere:
    cpfence --bulk-disable-wp-file-edit
  3. 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.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to Perform and Export Wordpress Vulnerability Scans with cPFence?

cPFence provides powerful tools for identifying and analyzing Wordpress vulnerabilities. With the...

How to Generate a List of All WordPress Sites on Your Server?

cPFence provides an easy way to generate a comprehensive list of all WordPress sites on your...

How to Quickly Identify Infected WordPress Sites Using cPFence?

cPFence makes it easy to identify and clean infected WordPress sites on your server. Follow the...

How to Clean an Infected WordPress Site?

Has your WordPress site been infected, and cPFence reported malware or other issues? Don’t worry;...

How to Secure Your WordPress Sites with cPFence?

WordPress is a powerful platform, but it can become vulnerable if not properly secured. With...