Domanda

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?

È stato utile?

Soluzione

You could create a cronjob that runs on 1am every 24 hours. With WP CLI this would be something like:

wp core update && wp plugin update --all && wp theme update

So you just create a .sh script, put the above in it, and run the script with a cronjob.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a wordpress.stackexchange
scroll top