Allow Only Minor Core Auto-Updates
Keeps automatic security and maintenance releases of WordPress (like 6.8.1 to 6.8.2) but stops automatic major upgrades.
Opens WPIDE on
Code
add_filter( 'allow_major_auto_core_updates', '__return_false' );
add_filter( 'allow_minor_auto_core_updates', '__return_true' );
Notes
Plan major upgrades yourself after testing them on staging.
How to add this snippet
- Install WPIDE on your WordPress site (it is free) and open Code Snippets.
- Use snippet above adds it from the library in one click. Or copy the code into a new snippet with the same code type.
- It is added inactive: review the code and settings, then switch it on.