I’m using a customised version of a commercial theme, with a lot of stuff in it.
I’m trying out adding WordPress REST API endpoints. I would now like to add an endpoint that retrieves a list of available plugin, theme and core updates.
I have a client site that’s under version control using Git. The single repository is at the WordPress root level, but it is set to ignore everything except for theme and plugin files. I did some research into best practices and found some content on submodules, which I might try next time, but at the moment, I’m wondering if there’s a way to achieve both of the following:
I don’t want to update plugins within business hours. Is there a way to schedule for after 1 am? Maybe via a hook or a setting in wp-config.php?
I found a code to prevent WordPress update for certain user role:
WordPress 3.7 added automatic updates. How does this work, and how can I configure this feature?
Is there any way to get wordpress to check for, download private theme updates?
I’m developing a wordpress plugin at the moment which I do not want in the WordPress plugin repository. However I still want to be able to push updates to my costumers from my own API repository.
There is an opt-in filter that allows all plugins on my site to receive automatic updates:
From my understanding of how WordPress updates core and plugins is that every 12 hours it goes out and looks for updates. When does that time get set? 12 hours from initial installation? I ask this because using the plugin auto-update filter add_filter( 'auto_update_plugin' );
you could theoretically only allow plugins to update between certain times but if that certain time does not fall into that 12 hour window then plugins will never be updated.