Home » Knowledge Base » Disable automatic WordPress updates via wp-config.php
Knowledge base article
Disable automatic WordPress updates via wp-config.php
This guide will teach you how you can disable automatic WordPress updates by adding an entry to your wp-config.php file
Automated WordPress updates are recommended for security purposes however on occasion it may be preferred to manually apply updates to ensure compatibility.
To complete this guide, please ensure you have SSH Access to your hosting server. Serversaurus hosting relies on key based authentication to login via SSH/SFTP. To set up SSH access you can generate a SSH key pair and configure it in cPanel before proceeding with this guide.
Let's begin!
- Open your terminal window and ssh onto your hosting server:
ssh username@yourserver.serversaurus.com.au
- Change into the public_html directory (or alternative document root location):
cd public_html
- Open the wp-config.php file:
vi wp-config.php
- Paste the following text to the end of your wp-config.php file by typing i:
define( 'AUTOMATIC_UPDATER_DISABLED', true );
- Once completed press esc and wq! to save.
Well done! Automated WordPress updates are now disabled.
Last updated November 30, 2023