4

I use the new WordPress built-in auto-update feature for plugins. I want to update my plugins as soon as there is a new release but today i checked my websites ond most of the plugins have the notice "Automatic update scheduled in 2 days". Is it possible to change the WordPress built in auto-update schedule or where is this option set?

0

1 Answer 1

2

I have not found a way to change the frequency that is why I use WP-CLI for updating WordPress, plugins, themes and language files. Anyway I prefer to do it scheduled on a defined time e.g. nightly.

With a Cronjob you can execute as many times a day you want. I use this commands:

cd /folderToWordpressInstallation 
    && wp core update && wp plugin update --all 
    && wp theme update --all 
    && wp language core update 
    && wp language plugin update --all 
    && wp language theme update --all

wp command must be available on your web hosting. It can be downloaded here https://wp-cli.org/. Either use /path/wp or add path to wp command to your PATH variable within hosting environment. Then path prefix is not needed.

3
  • 1
    Thank you for Feedback. Now it is better formatted. I wrote also commands. Because with && multiple commands are concatenated to execute updates for WordPress itself, plugins, themes and so on.
    – HFranz
    Dec 21, 2021 at 11:50
  • 1
    Just the obligatory - "be careful with these commands" as they will include major, minor and patch releases. Generally it's best to test anything that's not just a patch update before release.
    – Bysander
    Dec 21, 2021 at 17:02
  • Oh yes, if you like to update only to minor versions, use --minor parameter for wp core update command
    – HFranz
    Dec 22, 2021 at 20:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.