wphooks.info - body_class

body_class

(trunk - 5.0-alpha-42993)

The hook occurs in the following file:

wp-includes/post-template.php:
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
	$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
 *