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)
  • (array) $classes An array of body classes.
    Required: Yes
  • (array) $class An array of additional classes added to the body.
    Required: Yes
Defined at:
Codex:

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





Source

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