core_version_check_query_args WordPress Filter Hook

The core_version_check_query_args hook allows you to modify the query args used when checking for a new WordPress version. This can be useful if you need to change the way the check is performed for your specific environment.

apply_filters( 'core_version_check_query_args', array $query ) #

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.


Top ↑

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.


Top ↑

Source

File: wp-includes/update.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.9.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.