WordPress开发者和主题制作者的搜索引擎



body_class ›

Since2.8.0
已弃用n/a
apply_filters( 'body_class', $classes, $class )
参数: (2)
  • (string[]) $classes An array of body class names.
    Required: Yes
  • (string[]) $class An array of additional class names added to the body.
    Required: Yes
定义在:
文档:

Filters the list of CSS body class names for the current post or page.





源码

$classes = apply_filters( 'body_class', $classes, $class );