Title: core_version_check_query_args
Published: November 20, 2017
Last modified: February 24, 2026

---

# apply_filters( ‘core_version_check_query_args’, array $query )

## In this article

 * [Description](https://developer.wordpress.org/reference/hooks/core_version_check_query_args/?output_format=md#description)
 * [Parameters](https://developer.wordpress.org/reference/hooks/core_version_check_query_args/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/core_version_check_query_args/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/core_version_check_query_args/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/core_version_check_query_args/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/core_version_check_query_args/?output_format=md#wp--skip-link--target)

Filters the query arguments sent as part of the core version check.

## 󠀁[Description](https://developer.wordpress.org/reference/hooks/core_version_check_query_args/?output_format=md#description)󠁿

WARNING: Changing this data may result in your site not receiving security updates.

Please exercise extreme caution.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/core_version_check_query_args/?output_format=md#parameters)󠁿

 `$query`array

Version check query arguments.

 * `version` string
 * WordPress 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 WordPress installation.
 * `users` int
 * Number of users on this WordPress installation.
 * `multisite_enabled` int
 * Whether this WordPress installation uses Multisite.
 * `initial_db_version` int
 * Database version of WordPress at time of installation.
 * `extensions` array
 * List of PHP extensions and their versions.
 * `platform_flags` array
 * List containing the operating system name and bit support.
 * `image_support` array
 * List of image formats supported by GD and Imagick.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/core_version_check_query_args/?output_format=md#source)󠁿

    ```php
    $query = apply_filters( 'core_version_check_query_args', $query );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/update.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-includes/update.php#L209)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/update.php#L209-L209)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/core_version_check_query_args/?output_format=md#related)󠁿

| Used by | Description | 
| [wp_version_check()](https://developer.wordpress.org/reference/functions/wp_version_check/)`wp-includes/update.php` |

Checks WordPress version against the newest version.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/core_version_check_query_args/?output_format=md#changelog)󠁿

| Version | Description | 
| [6.1.0](https://developer.wordpress.org/reference/since/6.1.0/) | Added `$extensions`, `$platform_flags`, and `$image_support` to the `$query` parameter. | 
| [4.9.0](https://developer.wordpress.org/reference/since/4.9.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fcore_version_check_query_args%2F)
before being able to contribute a note or feedback.