Last active
October 9, 2019 11:43
-
-
Save spyesx/d273749549535f0f011ba55cb23b22f7 to your computer and use it in GitHub Desktop.
Disable Wordpress updates
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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