Uses
Uses | Description |
---|---|
wp-admin/includes/screen.php: get_current_screen() | Get the current screen object |
Add a class to the body HTML tag.
Filters the body class string for admin pages and adds our own class for easier styling.
(string) (Required) The body class string.
(string) The modified body class string.
File: wp-admin/includes/class-wp-site-health.php
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; }
Version | Description |
---|---|
5.2.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_site_health/admin_body_class