WordPress at a glance
filter is not described

core_version_check_query_args filter-hook . WP 4.9.0

Filter 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.

Usage

add_filter( 'core_version_check_query_args', 'filter_function_name_6769' );
function filter_function_name_6769( $query ){
	// filter...

	return $query;
}
$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.

Список изменений

С версии 4.9.0 Введена.

Где вызывается хук

wp_version_check()
core_version_check_query_args
wp-includes/update.php 129
$query = apply_filters( 'core_version_check_query_args', $query );

Где используется хук в ядре WP

Использование не найдено.