wppaste
WordPress

do_action( 'site_health_tab_content', string $tab )

Since
5.8.0
Fires when outputting the content of a custom Site Health tab.

Description

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.

Compatibility

WordPress
since 5.8.0
  • 6.7.7
  • 6.8.8
  • 6.9.7
  • 7.0.4
  • 7.1.0

Present in every tracked release (6.7.7 to 7.1.0).

Parameters

$tabstring
The slug of the tab that was requested.

Where this hook fires · 1

  • wp-admin/site-health.php:220file scope

Source code

	 * the capability checks for the Site Health page to view any custom tabs and their contents.	 *	 * @since 5.8.0	 *	 * @param string $tab The slug of the tab that was requested.	 */	do_action( 'site_health_tab_content', $_GET['tab'] ); 	require_once ABSPATH . 'wp-admin/admin-footer.php';	return;} else {	wp_admin_notice(		__( 'The Site Health check requires JavaScript.' ),

Changelog

Introduced in 5.8.0. Unchanged from 6.7.7 through 7.1.0.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 7.1.0

Signature, return type and hooks compared across 5 parsed releases.

About this page

Parsed data
Generated from the wordpress-develop 6.7.7 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.