how to set up automatic Update for All WordPress Plugins...

Einfach Dinge, die nichts mit XAMPP, Apache Friends, Apache, MySQL, PHP und alle dem zu tun haben. Allerlei halt. ;)

how to set up automatic Update for All WordPress Plugins...

Postby unleash_it » 05. February 2021 12:09

dear community,.

how to setting up Automatic Update for All your WordPress Plugins?

we can set WordPress to automatically install all plugin updates by simply adding a few lines of code the theme’s functions.php file and besides that to a site-specific plugin.

add_filter( 'auto_update_plugin', '__return_true' );


With that we have added a little filter: and this filter tells the so called WordPress_automatic_updater to automatically install plugin updates when they’re available.

We can do more: If we also want to automatically update more themes, then we can add another code-snippet like this:

add_filter( 'auto_update_theme', '__return_true' );



see more for the full story: Configuration via wp-config.php #Configuration via wp-config.php

Using wp-config.php, automatic updates can be disabled completely, and core updates can be disabled or configured based on update type.

https://wordpress.org/support/article/c ... d-updates/


by the way: the underlying server-conditions might be a problem to some of us - and besides that: some security-nerds do not like to setup the server to do the automattic update. But this story needs to be prepared with a longer article - i come up with that in the near future...
Interessen: Bikes & steel frames: Linux & SBC https://www.allaboutcircuits.com :: die neuen Knowledge-Base: AFFiNE: There can be more than Notion and Miro. auf affine.pro :: WordPress Entwicklung - sic: make.wordpress.org/core/
User avatar
unleash_it
 
Posts: 786
Joined: 10. December 2011 18:32
Operating System: linux opensuse 12.1

Return to Allerlei

Who is online

Users browsing this forum: No registered users and 62 guests