allow_major_auto_core_updates WordPress Filter Hook
The allow_major_auto_core_updates hook is used to determine whether or not WordPress should automatically update to a new major version. This hook is called immediately after the WordPress version is checked, and if it returns false, WordPress will not auto-update.
apply_filters( 'allow_major_auto_core_updates', bool $upgrade_major ) #
Filters whether to enable major automatic core updates.
Parameters
- $upgrade_major
(bool)Whether to enable major automatic core updates.
Source
Changelog
Version | Description |
---|---|
3.7.0 | Introduced. |