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 |
---|---|
116 | * @type string $locale The locale to retrieve updates for. |
117 | * @type string $mysql MySQL version number. |
118 | * @type string $local_package The value of the $wp_local_package global, when set. |
119 | * @type int $blogs Number of sites on this WordPress installation. |
120 | * @type int $users Number of users on this WordPress installation. |
121 | * @type int $multisite_enabled Whether this WordPress installation uses Multisite. |
122 | * @type int $initial_db_version Database version of WordPress at time of installation. |
123 | * } |
124 | */ |
125 | $query = apply_filters( 'core_version_check_query_args', $query ); |
126 |
|
127 | $post_body = array( |
128 | 'translations' => wp_json_encode( $translations ), |
129 | ); |
130 |
|
131 | if ( is_array( $extra_stats ) ) { |
132 | $post_body = array_merge( $post_body, $extra_stats ); |
133 | } |
134 |
|