site_health_navigation_tabs filter-hookWP 5.8.0

An associative array of extra tabs for the Site Health navigation bar.

Add a custom page to the Site Health screen, based on a tab slug and label. The label you provide will also be used as part of the site title.

Usage

add_filter( 'site_health_navigation_tabs', 'wp_kama_site_health_navigation_tabs_filter' );

/**
 * Function for `site_health_navigation_tabs` filter-hook.
 * 
 * @param string[] $tabs An associative array of tab labels keyed by their slug.
 *
 * @return string[]
 */
function wp_kama_site_health_navigation_tabs_filter( $tabs ){

	// filter...
	return $tabs;
}
$tabs(string[])
An associative array of tab labels keyed by their slug.

Changelog

Since 5.8.0 Introduced.

Where the hook is called

In file: /wp-admin/site-health.php
site_health_navigation_tabs
wp-admin/site-health.php 31
$tabs = apply_filters( 'site_health_navigation_tabs', $tabs );

Where the hook is used in WordPress

Usage not found.