site_health_tab_content хук-событиеWP 5.8.0

Output content of a custom Site Health tab.

This action fires right after the Site Health header, and users are still subject to the capability checks for the Site Health page to view any custom tabs and their contents.

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

add_action( 'site_health_tab_content', 'wp_kama_site_health_tab_content_action' );

/**
 * Function for `site_health_tab_content` action-hook.
 * 
 * @param string $tab The slug of the tab that was requested.
 *
 * @return void
 */
function wp_kama_site_health_tab_content_action( $tab ){

	// action...
}
$tab(строка)
The slug of the tab that was requested.

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

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

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

В файле: /wp-admin/site-health.php
site_health_tab_content
wp-admin/site-health.php 205
do_action( 'site_health_tab_content', $_GET['tab'] );

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

wp-admin/includes/class-wp-site-health.php 56
add_action( 'site_health_tab_content', array( $this, 'show_site_health_tab' ) );