We use automatic updates on our sites due to having many sites and so manual updates not being feasible in the low hosting costs.
But due to Wordpress or mainly plugin updates having the possibility to break your site, and due to not knowing when Wordpress would actually do the updates which could also occur every day, I would like to programatically update Wordpress and plugins in a functions.php or plugin so I can know the exact date and time it will run, and so we know to check for problems afterwards.
For example, I may choose Monday mornings 3am so our first action that morning is check all sites are working well, fix any issues, and then I know the rest of the week will be problem free :)
Does anyone know how to initiate a Wordpress and plugin update in the functions file or a plugin?
My idea is to disable all automatic updates generally, but then at a certain day and time to call the update function which would check if updates exist, and if they do, update them. I will add an email function to inform me what has been updated on what site so I can check that site.
If using automatic updates, this approach is far more controlled than if leaving Wordpress do it as and when it likes however many times every day.