site_health_tab_content
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.
Usage
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(string)
- The slug of the tab that was requested.
Changelog
Since 5.8.0 | Introduced. |
Where the hook is called
In file: /wp-admin/site-health.php
site_health_tab_content
wp-admin/site-health.php 205
do_action( 'site_health_tab_content', $_GET['tab'] );
Where the hook is used in WordPress
wp-admin/includes/class-wp-site-health.php 54
add_action( 'site_health_tab_content', array( $this, 'show_site_health_tab' ) );