apply_filters( 'core_version_check_query_args', array $query )
Filter the query arguments sent as part of the core version check.
Description
WARNING: Changing this data may result in your site not receiving security updates. Please exercise extreme caution.
Parameters
- $query
-
Version check query arguments.
- 'version'
(string) ClassicPress version number. - 'php'
(string) PHP version number. - 'locale'
(string) The locale to retrieve updates for. - 'mysql'
(string) MySQL version number. - 'local_package'
(string) The value of the $wp_local_package global, when set. - 'blogs'
(int) Number of sites on this ClassicPress installation. - 'users'
(int) Number of users on this ClassicPress installation. - 'multisite_enabled'
(int) Whether this ClassicPress installation uses Multisite. - 'initial_db_version'
(int) Database version of ClassicPress at time of installation. - 'extra_stats'
(array) Failure data from the current update, if any. - 'failure_data'
(array) Failure data from a previous update, if any. - 'translations'
(array) Core translations installed on this site.
- 'version'
Source
File: wp-includes/update.php
Changelog
Version | Description |
---|---|
1.0.0 | Added extra_stats , failure_data , and translations parameters to query (in WP these are passed in a POST body). |
WP-4.9.0 | Introduced. |