WP_Site_Health::admin_body_class() – Add a class to the body HTML tag.
You appear to be a bot. Output may be restricted
Description
Adds a class to the body HTML tag.
Filters the body class string for admin pages and adds our own class for easier styling.
Usage
$string = WP_Site_Health::admin_body_class( $body_class );
Parameters
- $body_class
- ( string ) required – The body class string.
Returns
string The modified body class string.
Source
File name: wordpress/wp-admin/includes/class-wp-site-health.php
Lines:
1 to 10 of 10
public function admin_body_class( $body_class ) { $screen = get_current_screen(); if ( 'site-health' !== $screen->id ) { return $body_class; } $body_class .= ' site-health'; return $body_class; }