wphooks.info - body_class

body_class

The hook occurs in the following file:

wp-includes/post-template.php:
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
	$classes = array_map( 'esc_attr', $classes );

	/**
	 * Filters the list of CSS body classes for the current post or page.
	 *
	 * @since 2.8.0
	 *
	 * @param array $classes An array of body classes.
	 * @param array $class   An array of additional classes added to the body.
	 */
	$classes = apply_filters( 'body_class', $classes, $class );

	return array_unique( $classes );
}

/**
 * Whether post requires password and correct password has been provided.
 *
 * @since 2.7.0
 *