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

Whether to enable automatic updates to new major versions.

$current

The array of parts of the current version.

$offered

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.