Filter hook 'admin_body_class'
in WP Core File wp-admin/admin-header.php at line 242
Description
Filters the CSS classes for the body tag in the admin. This filter differs from the {@see 'post_class'} and {@see 'body_class'} filters in two important ways: 1. `$classes` is a space-separated string of class names instead of an array. 2. Not all core admin classes are filterable, notably: wp-admin, wp-core-ui, and no-js cannot be removed.
Occurrences
Filename |
Line Number |
wp-admin/admin-header.php |
242 |
wp-admin/includes/template.php |
2188 |
Parameters
Type |
Name |
Description |
string |
$classes |
Space-separated list of CSS classes. |
PHP Doc
/**
* Filters the CSS classes for the body tag in the admin.
*
* This filter differs from the {@see 'post_class'} and {@see 'body_class'} filters
* in two important ways:
*
* 1. `$classes` is a space-separated string of class names instead of an array.
* 2. Not all core admin classes are filterable, notably: wp-admin, wp-core-ui,
* and no-js cannot be removed.
*
* @since 2.3.0
*
* @param string $classes Space-separated list of CSS classes.
*/