WP_Site_Health::show_site_health_tab()publicWP 5.8.0

Outputs the content of a tab in the Site Health screen.

Method of the class: WP_Site_Health{}

No Hooks.

Return

null. Nothing.

Usage

$WP_Site_Health = new WP_Site_Health();
$WP_Site_Health->show_site_health_tab( $tab );
$tab(string) (required)
Slug of the current tab being displayed.

Changelog

Since 5.8.0 Introduced.

WP_Site_Health::show_site_health_tab() code WP 6.1.1

public function show_site_health_tab( $tab ) {
	if ( 'debug' === $tab ) {
		require_once ABSPATH . '/wp-admin/site-health-info.php';
	}
}