wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



body_class › WordPress Function

Od2.8.0
Przestarzałyn/a
body_class ( $css_class = '' )
Parametry:
  • (string|string[]) $css_class Optional. Space-separated string or array of class names to add to the class list. Default empty.
    Wymagane: Nie
    Domyślny: (puste)
Zdefiniowane na:
Codex:

Displays the class names for the body element.



Źródło

function body_class( $css_class = '' ) {
	// Separates class names with a single space, collates class names for body element.
	echo 'class="' . esc_attr( implode( ' ', get_body_class( $css_class ) ) ) . '"';
}