函数原型
body_class( string|string[] $class = ” )
函数描述
Displays the class names for the body element.
是否弃用
未弃用
函数参数
-
$class
string|string[]
Optional - Space-separated string or array of class names to add to the class list.
Default:
''
函数返回值
无
函数位置
File: wp-includes/post-template.php.
函数源码
<body <?php body_class(); ?>>源码链接
变更日志
| Version | Description |
|---|---|
| 2.8.0 | Introduced. |

