🚀 Is building a website too difficult? Let me guide you step by step—Learn about the 「Naibabiji WordPress Website Building Coaching Service」 →

Completely disable WordPress Plugin and Theme updates, installation, and editing functions

The title seems a bit awkward; to explain in more detail: Disable WordPress from detecting plugin and theme updates, disable installing themes and plugins in the admin dashboard, and disable editing theme and plugin code in the admin dashboard.

When is it necessary to disable update checks

When you have set up WordPress for a novice user, configured the plugins and themes, and the website is fully functional, you need to use this feature to prevent the curious novice user from clicking around and causing unnecessary trouble for you.

Code to Completely Disable WordPress Update Checks and Installation/Editing Permissions

define( 'DISALLOW_FILE_MODS', true );
Simply add the above code to the wp-config.php file and save it. Then, in theWordPressadmin dashboard, you will no longer see options for updates, installing plugins, editing plugins, installing themes, or editing themes. Directly accessing these pages via URL will also show a permission denied message. However, a notification for WordPress core updates will still appear on the dashboard, as shown in the image below. If you find this notification bothersome, please use the plugin version to disable it.WordPress更新提示As a website owner, keeping WordPress and plugins updated is very important.

Disable WordPress Automatic Update Function

The code above disables checking for updates. If you want to disable WordPress automatic updates, you can add the following code to the wp-config.php file.
define( 'AUTOMATIC_UPDATER_DISABLED', true );
For information on configuring WordPress automatic background updates, please refer to theWordPress official documentation.

Plugin Version to Disable WordPress Update Checks

The code above is a native solution, but it will still show a core update notification. If you don't want that notification either, you can use the following twoWordPress Pluginplugins, both tested and confirmed effective by Naiba on June 5th.Below is a demonstration of the effect.Effect of using a plugin to disable WordPress update checks:禁止WordPress更新检查Effect without enabling a plugin to disable WordPress update checks禁止WordPress更新检查 Disable All WordPress UpdatesThis is a plugin that disables update checks for WordPress core files, themes, and plugins. The plugin itself may update, but after updating, you can re-enable it to continue blocking WordPress updates. Plugin download address:https://wordpress.org/plugins/disable-wordpress-updates/ QQWorld Speed for ChinaThis plugin is essentially a website optimization plugin for the Chinese market. Besides disabling WordPress update checks, it can also disable or replace Google Fonts, Gravatar avatars, and Emoji. Plugin download address:https://wordpress.org/plugins/qqworld-speed-4-china/

Related Posts

In addition to disabling WordPress updates, you might also be interested in the following two articles, which are somewhat related to this topic.

🚀 Still feeling confused after reading the tutorial? Let me guide you step-by-step instead.

「Naibabiji WordPress Website Building Coaching」 — From selecting a domain and purchasing hosting to installing themes and publishing posts, I「ll guide you through every step, helping you avoid detours and reach your goals directly.

👉 Learn about Website Building Coaching Service
🔒

Comments are closed

The comment function for this article is closed. If you have any questions, please feel free to contact us through other channels.

×
二维码

Scan to Follow