W3cubDocs

/WordPress

WP_Site_Health::show_site_health_tab( string $tab )

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

Parameters

$tabstringrequired
Slug of the current tab being displayed.

Source

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

Changelog

Version Description
5.8.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_site_health/show_site_health_tab