core_version_check_query_args
Filters the query arguments sent as part of the core version check.
WARNING: Changing this data may result in your site not receiving security updates. Please exercise extreme caution.
Использование
add_filter( 'core_version_check_query_args', 'wp_kama_core_version_check_query_args_filter' );
/**
* Function for `core_version_check_query_args` filter-hook.
*
* @param array $query Version check query arguments.
*
* @return array
*/
function wp_kama_core_version_check_query_args_filter( $query ){
// filter...
return $query;
}
- $query(массив)
Version check query arguments.
-
version(строка)
WordPress version number. -
php(строка)
PHP version number. -
locale(строка)
The locale to retrieve updates for. -
mysql(строка)
MySQL version number. -
local_package(строка)
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(массив)
List of PHP extensions and their versions. -
platform_flags(массив)
List containing the operating system name and bit support. - image_support(массив)
List of image formats supported by GD and Imagick.
-
Список изменений
| С версии 4.9.0 | Введена. |
| С версии 6.1.0 | Added $extensions, $platform_flags, and $image_support to the $query parameter. |
Где вызывается хук
$query = apply_filters( 'core_version_check_query_args', $query );