Skip to content

Instantly share code, notes, and snippets.

@kastnerp
Last active October 11, 2021 19:49
Show Gist options
  • Save kastnerp/a837795d16c1ca1b84aacbbf1b716e28 to your computer and use it in GitHub Desktop.
Save kastnerp/a837795d16c1ca1b84aacbbf1b716e28 to your computer and use it in GitHub Desktop.
This automatically updates everything from themes, plugins, translations, etc.
# Type `crontab -e` and append this line and make sure to adapt your worpress path
0 3 * * * cd /var/www/virtual/$USER/html/wordpress/; wp cron event run --all >/dev/null 2>&1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment