Last update at :2024-02-07,Edit by888u
Recently, I found that my WordPress is always automatically upgraded. It happens that my program is placed in mainland China. In the background, I always see "Automatic upgrade of WordPress failed - please try again." What an upgrade! A blog I had posted abroad was automatically upgraded to the latest version 4.9.8. I found that the settings at the back changed to Settings, and many plug-ins automatically switched to English. I was very upset when I saw this. Today I will share with you two methods to turn off WordPress automatic upgrade.
Method 1:
Replace the configuration file functions.php in the theme and modify it as follows:
add_filter( 'automatic_updater_disabled', '__return_true' );However, if you change the theme, you have to change it in the configuration file of the new theme. If you don't want to be so troublesome, you can use the second method.
Method 2:
Open the WP global configuration file wp-config.php in the root directory of your website and add the following code at the end:
/** Turn off automatic WordPress updates and upgrades */ define('AUTOMATIC_UPDATER_DISABLED', true);In this way, no matter how you change the theme, WordPress will not automatically upgrade.
Recommended site searches: high-defense server rental, IP, foreign domain name, domain name check, registered domain name query, domain name SSL certificate, new network domain name registration US hosting forum, ws domain name, free personal cloud server outside mainland China,
p>
发表评论