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.


Top ↑

Source

File: wp-admin/includes/class-core-upgrader.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.7.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.