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 |
|---|---|
| 200 | * @type int $blogs Number of sites on this WordPress installation. |
| 201 | * @type int $users Number of users on this WordPress installation. |
| 202 | * @type int $multisite_enabled Whether this WordPress installation uses Multisite. |
| 203 | * @type int $initial_db_version Database version of WordPress at time of installation. |
| 204 | * @type array $extensions List of PHP extensions and their versions. |
| 205 | * @type array $platform_flags List containing the operating system name and bit support. |
| 206 | * @type array $image_support List of image formats supported by GD and Imagick. |
| 207 | * } |
| 208 | */ |
| 209 | $query = apply_filters( 'core_version_check_query_args', $query ); |
| 210 | |
| 211 | $post_body = array( |
| 212 | 'translations' => wp_json_encode( $translations ), |
| 213 | ); |
| 214 | |
| 215 | if ( is_array( $extra_stats ) ) { |
| 216 | $post_body = array_merge( $post_body, $extra_stats ); |
| 217 | } |
| 218 | |