WP_Site_Health::show_site_health_tab()
Outputs the content of a tab in the Site Health screen.
Method of the class: WP_Site_Health{}
No Hooks.
Return
null
. Nothing (null).
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() WP Site Health::show site health tab code WP 6.6.2
public function show_site_health_tab( $tab ) { if ( 'debug' === $tab ) { require_once ABSPATH . 'wp-admin/site-health-info.php'; } }