apply_filters( 'allow_major_auto_core_updates', bool $upgrade_major )
- Since
- 3.7.0
Filters whether to enable major automatic core updates.
Compatibility
- WordPress
- since 3.7.0
- 6.7.10
- 6.8.11
- 6.9.10
- 7.0.7
- 7.1.3
Present in every tracked release (6.7.10 to 7.1.3).
Parameters
$upgrade_majorbool- Whether to enable major automatic core updates.
Where this hook fires · 2
wp-admin/includes/class-core-upgrader.php:386Core_Upgrader::should_update_to_version()wp-admin/update-core.php:387core_auto_updates_settings()
Source code
* Filters whether to enable major automatic core updates. * * @since 3.7.0 * * @param bool $upgrade_major Whether to enable major automatic core updates. */ return apply_filters( 'allow_major_auto_core_updates', $upgrade_major ); } // If we're not sure, we don't want it. return false; }Changelog
Introduced in 3.7.0. Unchanged from 6.7.10 through 7.1.3.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 6.7.10 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.