Articles of automatic updates

Avoid theme updates, just one theme

I stupidly created a ton of websites with custom themes (not child themes, 100% custom) and named my theme folder “custom”. Now they are starting to auto-update and get replaced with some theme from the repository that happens to use the same folder name. I could disable the updates in wp_config, but I don’t really […]

Disable requests to api.wordpress.org

I need to suppress outbound requests to api.wordpress.org somehow. They are taking like 1 seconds each and take so many time to load a page when I’m logged as admin. I’ve searched for some solutions over the web but they don’t seem to work.

Change email for update notification

I’ve recently got the email with the update notification. [Example.com] Your site has updated to WordPress 3.8.1 Howdy! Your site at http://www.example.com has been updated automatically to WordPress 3.8.1. […] I want to change the email where this notification goes. I seems that it’s not connected with any user. I’ve searched all the backend and […]

How to schedule autopost publishing at each 60 minutes?

I am using following code to auto publish posts from images uploaded, it works but does not schedule posts publishing, all post are published right after images were uploaded by media uploader in wordpress dashboard. $autopost_controler = get_theme_mod( ‘auto_onoff’ ); if( $autopost_controler != ” ) { switch ( $autopost_controler ) { case ‘on’: add_action( ‘add_attachment’, […]

How wordpress detects a plugin update

I am a wp plugin developer and I’d like to know how WP detects when some plugin has an update? I guess it is ok for these plugins which are already in wordpress.org repository. But how I can implement the same mechanism for these plugins which are stored in my own repository? (Already made some […]

Why won't my site automatically apply updates after upgrade to 3.7?

I’ve just upgraded to 3.7 and one of the features in this release is the automatic application of security releases. However once I upgraded it said “This site is not able to apply these updates automatically. But we’ll email (my email address) when there is a new security release.” What is it about my site […]

Is there any way to test if a function running only on plugin update is successfully running?

Is there any way to test if a function running only on plugin update is successfully running? Right now I am calling function if WP version present in configuration file is not same as plugin version’s value in database and so testing by changing value of constant. But is there any other better approach?

Avoiding plugin name collisions with WP updater

I have a client who has a WordPress site that uses a custom plugin written for them by another developer. Recently, they ran the WordPress updater and one of the updates clobbered that custom plugin and replaced it with a plugin from the Plugin Repository that happened to have the same name. I’m trying to […]

How long does it take for theme / plugin automatic updates to initiate?

I have the following snippet above That’s all, stop editing! via wp-config.php file: /* Enable automatic updates for WordPress ) */ define( ‘WP_AUTO_UPDATE_CORE’, true ); I also have the following via my functions.php file: /** * Enable automatic updates for plugins and themes */ add_filter( ‘auto_update_plugin’, ‘__return_true’ ); add_filter( ‘auto_update_theme’, ‘__return_true’ ); Approximately, how frequently […]

How to disable core and plugin updates

Is there any way to disable core and plugin updates? I am modifying a plugin and bit of WordPress Core (I know its a sin to do so), but can’t help it.