A WordPress-centric search engine for devs and theme authors



body_class ›

Since2.8.0
Deprecatedn/a
apply_filters( 'body_class', $classes, $class )
Parameters: (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
Defined at:
Codex:

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





Source

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