apply_filters( 'core_version_check_query_args', array $query )
- Since
- 4.9.0
Filters 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.
Compatibility
- WordPress
- since 4.9.0
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
Parameters
$queryarray- { Version check query arguments.
@type string $version WordPress version number.
@type string $php PHP version number.
@type string $locale The locale to retrieve updates for.
@type string $mysql MySQL version number.
@type string $local_package The value of the $wp_local_package global, when set.
@type int $blogs Number of sites on this WordPress installation.
@type int $users Number of users on this WordPress installation.
@type int $multisite_enabled Whether this WordPress installation uses Multisite.
@type int $initial_db_version Database version of WordPress at time of installation.
}$versionstringWordPress version number.$phpstringPHP version number.$localestringThe locale to retrieve updates for.$mysqlstringMySQL version number.$local_packagestringThe value of the $wp_local_package global, when set.$blogsintNumber of sites on this WordPress installation.$usersintNumber of users on this WordPress installation.$multisite_enabledintWhether this WordPress installation uses Multisite.$initial_db_versionintDatabase version of WordPress at time of installation.
Where this hook fires · 1
wp-includes/update.php:167wp_version_check()
Source code
* @type int $blogs Number of sites on this WordPress installation. * @type int $users Number of users on this WordPress installation. * @type int $multisite_enabled Whether this WordPress installation uses Multisite. * @type int $initial_db_version Database version of WordPress at time of installation. * } */ $query = apply_filters( 'core_version_check_query_args', $query ); $post_body = array( 'translations' => wp_json_encode( $translations ), ); if ( is_array( $extra_stats ) ) {Changelog
Introduced in 4.9.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 6.7.7 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.