apply_filters( 'allow_dev_auto_core_updates', bool $upgrade_dev, array $current, array $offered )

Filters whether to enable automatic core updates from prerelease versions.


Description

This filter is called if the current version is a pre-release, and the offered version is a newer pre-release of the same semver version, or the final release of the same semver version.


Parameters

$upgrade_dev

(bool) Whether to enable automatic updates from prereleases.

$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.