Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: core_version_check_query_args

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

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