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 |
---|---|
22 | * An associative array of extra tabs for the Site Health navigation bar. |
23 | * |
24 | * Add a custom page to the Site Health screen, based on a tab slug and label. |
25 | * The label you provide will also be used as part of the site title. |
26 | * |
27 | * @since 5.8.0 |
28 | * |
29 | * @param string[] $tabs An associative array of tab labels keyed by their slug. |
30 | */ |
31 | $tabs = apply_filters( 'site_health_navigation_tabs', $tabs ); |
32 |
|
33 | $wrapper_classes = array( |
34 | 'health-check-tabs-wrapper', |
35 | 'hide-if-no-js', |
36 | 'tab-count-' . count( $tabs ), |
37 | ); |
38 |
|
39 | $current_tab = ( isset( $_GET['tab'] ) ? $_GET['tab'] : '' ); |
40 |
|