remain WordPress It's important to keep your website's plugins and themes up to date, and WordPress provides an easy way to do so.methodologies, which can automatically update plugins and themes, thus reducing the burden of doing it manually. In this article, we will explore in detail how to enable WordPress plugins and themes toautomatic updateand how to exclude specificplug-in (software component)maybethematic(used form a nominal expression)automatic updateThe
1. Why enable automatic updates for plugins and themes
Enabling automatic updates for plugins and themes helps to keep the site'ssafetyrespond in singingfunctionalityIntegrity. Here are some of the reasons why this is important:
- Enhancing Security
- Get New Features
- save time
- Avoidance of omissions
![图片[1]-如何启用 WordPress 插件和主题的自动更新,提升网站安全与性能](https://www.361sale.com/wp-content/uploads/2024/12/20241210150315455-image.png)
2. How to enable automatic updates for WordPress plugins and themes?
Enable automatic updates for individual plugins
In WordPress you can enable automatic updates directly from the dashboard:
- go into WordPress BackendNavigate to Plugins > Installed Plugins Page.
![图片[2]-如何启用 WordPress 插件和主题的自动更新,提升网站安全与性能](https://www.361sale.com/wp-content/uploads/2024/12/20241210201219444-image.png)
- In the plugin list, to the right of each plugin will be displayed a "Enable automatic updates" The options.
- strike (on the keyboard) "Enable automatic updates"WordPress will automatically install updates for the plugin.
![图片[3]-如何启用 WordPress 插件和主题的自动更新,提升网站安全与性能](https://www.361sale.com/wp-content/uploads/2024/12/20241210201327886-image.png)
Enable automatic updates for individual themes
For automatic update of the theme, the procedure is as follows:
- go into Appearance > Themes Page.
![图片[4]-如何启用 WordPress 插件和主题的自动更新,提升网站安全与性能](https://www.361sale.com/wp-content/uploads/2024/12/20241210201452304-image.png)
- Click on the theme you want to update automatically to bring up the theme details window.
- strike (on the keyboard) "Enable automatic updates"The theme will automatically install updates.
![图片[5]-如何启用 WordPress 插件和主题的自动更新,提升网站安全与性能](https://www.361sale.com/wp-content/uploads/2024/12/20241210202415906-image.png)
3. Set automatic updates for all plugins
Using WPCode Add code (recommended)
1. Install the WPCode plug-in:
- Go to the WordPress plugin repository, search for and install it. WPCode - Inserting Headers, Footers and Code Snippets Plug-ins.
2. Add code:
- After enabling the plugin, go to Code Snippets > Add New CodeThe
![图片[6]-如何启用 WordPress 插件和主题的自动更新,提升网站安全与性能](https://www.361sale.com/wp-content/uploads/2024/12/20241210205009433-image.png)
- option PHP code snippet mode, set the followingcodingPaste it in:
add_filter( 'auto_update_plugin', '__return_true' );
- Save and activatecode segmentThe
![图片[7]-如何启用 WordPress 插件和主题的自动更新,提升网站安全与性能](https://www.361sale.com/wp-content/uploads/2024/12/20241210205234315-image.png)
4. Set automatic updates for all themes
The following code needs to be added for all themes to enable automatic updates:
add_filter( 'auto_update_theme', '__return_true' );
Recommended Use WPCode Pluginto add code snippets, which is safer and does not require direct editing of the theme files:
- Install and activate the WPCode plug-in.
- go into Code Snippets > Add Snippet page, select "Add custom code"The
- Paste the above code into the code edit box, save andactivation codeThe
![图片[8]-如何启用 WordPress 插件和主题的自动更新,提升网站安全与性能](https://www.361sale.com/wp-content/uploads/2024/12/20241210205343179-image.png)
5. Exclude automatic updates for specific plugins or themes
Excluding automatic updates using plugins
Plugins can be used such as Easy Updates Manager to manage automatic updates:
- Installation and activation Easy Updates Manager Plug-ins.
![图片[9]-如何启用 WordPress 插件和主题的自动更新,提升网站安全与性能](https://www.361sale.com/wp-content/uploads/2024/12/20241210205529737-image.png)
- go into Dashboard > Update Options Page.
![图片[10]-如何启用 WordPress 插件和主题的自动更新,提升网站安全与性能](https://www.361sale.com/wp-content/uploads/2024/12/20241210210259672-image.png)
- In the Plugins and Themes section, you can choose to allow or disable specific plugins/themes for theautomatic updateThe
![图片[11]-如何启用 WordPress 插件和主题的自动更新,提升网站安全与性能](https://www.361sale.com/wp-content/uploads/2024/12/20241210210200732-image.png)
summarize
by enabling WordPress Pluginand themes are automatically updated, you can greatly reduce the burden of maintenance work and improve theWebsite Securityand performance. The form board sets up automatic updates for individual plugins and uses the code batchEnable automatic updatesThe flexibility is very high.
Link to this article:https://www.361sale.com/en/29923The article is copyrighted and must be reproduced with attribution.
No comments