get_body_class


get_body_class ( $css_class = '' )

Parameters:
  • (string|string[]) css_class Optional. Space-separated string or array of class names to add to the class list. Default empty.
Returns:
  • (string[]) Array of class names.
Defined at:

Description

Retrieves an array of the class names for the body element.

Related Functions

body_class, get_post_class, get_comment_class, wp_widgets_access_body_class, get_boundary_post

Top Google Results

User discussions

wpseek mobile