MainWP Community

Disable auto-updates for major versions by default in WordPress 5.6

Disable auto-updates for major versions in WordPress 5.6 on your child site.

Snippet Type

Execute on Child Sites

Snippet

add_filter( 'allow_major_auto_core_updates', '__return_false' );
3 Likes

Reference

Thanks! This seems to be the filter to add to my “maintenance helper” plugin to make sure my clients won’t enable major core updates by accident while I manage their sites.

1 Like

Minor updates are normally fine for having that auto-update since they are normally bug or security fixes.

I know, and I don’t disable minor updates, but I want to be able to decide when major updates are installed. I check for updates daily, so that’s not an issue.

1 Like

WordPress 5.6 is on track to be released next week on 8th December.

WordPress 5.6 was released.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.