Skip to content

Instantly share code, notes, and snippets.

@spyesx
Last active October 9, 2019 11:43
Show Gist options
  • Save spyesx/d273749549535f0f011ba55cb23b22f7 to your computer and use it in GitHub Desktop.
Save spyesx/d273749549535f0f011ba55cb23b22f7 to your computer and use it in GitHub Desktop.
Disable Wordpress updates
<?php
# Sometimes, you need to disable Wordpress updates because you prefer to update your Dockerfile or Helm chart.
# Source : https://wordpress.org/support/article/configuring-automatic-background-updates/
# function.php or a custom plugin
add_filter( 'automatic_updater_disabled', '__return_true' );
add_filter( 'auto_update_core', '__return_true' );
add_filter( 'auto_update_translation', '__return_false' );
add_filter( 'auto_core_update_send_email', '__return_false' );
add_filter( 'auto_update_theme', '__return_false' );
add_filter( 'auto_update_plugin', '__return_false' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment