body_class

body_class

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.1

do_action('body_class') is found 1 times:

  • /wp-includes/post-template.php line 859
    	 *
    	 * @param string[] $classes   An array of body class names.
    	 * @param string[] $css_class An array of additional class names added to the body.
    	 */
    	$classes = apply_filters( 'body_class', $classes, $css_class );
    
    	return array_unique( $classes );
    }
    
    /**
     * Determines whether the post requires password and whether a correct password has been provided.
    

See this hook used in plugins: