Core Function
View Source on Trac ↗ body_class()
body_class( mixed $css_class = '' ) Displays the class names for the body element.
Parameters 1 required
| Name / Type | Description |
|---|---|
| mixed | (string | string[]) $css_class Optional. Space-separated string or array of class names to add to the class list. Default empty. Required |
Return Value
(void)
No return value description available.
Function Information
Since Version
2.8.0
Source File
wp-includes/post-template.php
Advertisement