site_health_navigation_tabs хук-фильтрWP 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.

Использование

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.

Список изменений

С версии 5.8.0 Введена.

Где вызывается хук

В файле: /wp-admin/site-health.php
site_health_navigation_tabs
wp-admin/site-health.php 31
$tabs = apply_filters( 'site_health_navigation_tabs', $tabs );

Где используется хук в WordPress

Использование не найдено.