Plugin updates manager WP 5.5 compatibility
-
Since WP 5.5 added the option of managing auto-updates this option table isn’t as necessary for most sites anymore, while some options might still be interesting.
Essentially the problem is that it overrides everything and should instead use the newer code version to change the auto-update status BUT without overriding it.
The meaning here is to be able to manage update settings using the plugins/theme page which is more UX-logic.Here is an article that describes it @ make.WP :
Here is the related part :
Blanket auto-update opt-in
If a developer wants to enable auto-updates for all plugins and/or themes (including any that are installed in the future), the auto_update_plugin / auto_update_theme filters can be used.
add_filter( ‘auto_update_plugin’ , ‘__return_true’ ); add_filter( ‘auto_update_theme’ , ‘__return_true’ );
Note: Any value returned using these filters will override all auto-update settings selected in the admin. Changes made using these filters also will not be reflected to the user in the interface. It is highly recommended to use these filters in combination with the hooks detailed above to inform the user of the auto- update policy being enforced.
This approach will not be appropriate for all sites. It’s recommended to use the new UI to manage auto-updates unless you’re sure blanket opting-in is right for your site.
Also note: This filter was added to the codebase in WordPress 3.7.0 and is likely being used to blanket enable auto-updates for plugins and themes on sites today. If it appears the new UI elements are not changing the auto-update behavior for plugins or themes on your site, this may be why. #50662Waiting for your quick fix pls ??
- The topic ‘Plugin updates manager WP 5.5 compatibility’ is closed to new replies.