Display the classes for the body element.

Signature

body_class( $class = '' )
class
 (string|array) One or more classes to add to the class list.
Default: ''

Return

(void)

Source

function body_class( $class = '' ) {
	// Separates classes with a single space, collates classes for body element
	echo 'class="' . join( ' ', get_body_class( $class ) ) . '"';
}
WP Trac GitHub

Link here