apply_filters( 'allow_major_auto_core_updates', bool $upgrade_major, array $current, array $offered )

Filters whether to enable automatic core updates to a newer semver major release.


Description

See also


Parameters

$upgrade_major

(bool) Whether to enable automatic updates to new major versions.

$current

(array) The array of parts of the current version.

$offered

(array) The array of parts of the offered version.


Source

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

View on GitHub



Changelog

Changelog
Version Description
1.0.0 Version numbering scheme changed from WordPress to ClassicPress (semver). New parameters $current and $offered.
WP-3.7.0 Introduced.