What is a “forced plugin update”, how can I avoid it and use it for my plugins

To answer the first question… If you look within the WP_Automatic_Updater class found in wp-admin/includes/class-wp-upgrader.php we note the method is_disabled which is used by the method should_update to determine whether or not an automatic update is allowed. The is_disabled method will return true under the following conditions, if DISALLOW_FILE_MODS constant is defined and is true … Read more

How To/What triggers a WordPress auto update?

As of WordPress 4.7.3, auto-updates are triggered whenever the following sequence is successful. All the code is in the file wp-includes/update.php. 1. _maybe_update_core() is called (via the admin_init action). This function is run via the the admin_init action, which executes at the beginning of every admin page before the page is rendered. The update process … Read more

Real automated and unattended wordpress upgrade including plugins

I’m not aware of any solutions for iterating through and automatically updating your list of plug-ins, but my guess is that any system that can automatically update WordPress itself can be modified to update everything in fairly short order. That said, I know of two good ways to update WordPress automatically: WP Remote This is … Read more

Schedule WordPress Auto-Updates to only run during business hours

This one is actually surprisingly simple; add this to your wp-config.php file and all automatic updates will be blocked when outside of the specified hours: // Suspend updates when outside of business hours, 9:00 AM to 5:30 PM $updates_suspended = (date(‘Hi’) < 0900 || date(‘Hi’) > 1730); define( ‘AUTOMATIC_UPDATER_DISABLED’, $updates_suspended ); You can also use … Read more

How to implement WordPress plugin update that modifies the database?

In short, yes the – $wpdb class. See Codex for more information. Whenever you interact with a custom table (or any table, really) you should go through $wpdb – in particularly make sure you’re familiar with the prepare method which can help escapes queries and prevent injections. You should be familiar with already, as you … Read more

How should I structure a WP website project using git and updating from WP dashboard?

From my perspective there are two issues with your plan – Git and “conventional” structure. So basically everything. đŸ™‚ Git (and version control in general) is a poor tool for whole site stacks. Been there, done that, it hurt a lot. What you call an “unconventional” structure with content separated from core has been a … Read more