WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
Line | Code |
---|---|
113 | * @type string $locale The locale to retrieve updates for. |
114 | * @type string $mysql MySQL version number. |
115 | * @type string $local_package The value of the $wp_local_package global, when set. |
116 | * @type int $blogs Number of sites on this WordPress installation. |
117 | * @type int $users Number of users on this WordPress installation. |
118 | * @type int $multisite_enabled Whether this WordPress installation uses Multisite. |
119 | * @type int $initial_db_version Database version of WordPress at time of installation. |
120 | * } |
121 | */ |
122 | $query = apply_filters( 'core_version_check_query_args', $query ); |
123 |
|
124 | $post_body = array( |
125 | 'translations' => wp_json_encode( $translations ), |
126 | ); |
127 |
|
128 | if ( is_array( $extra_stats ) ) |
129 | $post_body = array_merge( $post_body, $extra_stats ); |
130 |
|
131 | $url = $http_url = 'http://api.wordpress.org/core/version-check/1.7/?' . http_build_query( $query, null, '&' ); |