Filters the list of CSS body class names for the current post or page.
$classesstring[]$css_classstring[]wp-includes/post-template.php:859get_body_class() * * @since 2.8.0 * * @param string[] $classes An array of body class names. * @param string[] $css_class An array of additional class names added to the body. */ $classes = apply_filters( 'body_class', $classes, $css_class ); return array_unique( $classes );} /** * Determines whether the post requires password and whether a correct password has been provided.Introduced in 2.8.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.