Languages:
English •
Italiano •
(Add your language)
Retrieves the classes for the body element as an array.
Usage
<?php get_body_class($class); ?>
Parameters
- $class
- (string or array) (optional) A string or array of classes to add to the return value
- Default: false
Return Value
- (array)
- An array of class names.
Change Log
- Since: 2.8.0
- 3.1.0 Added support for ID style classes
Source File
get_body_class() is located in wp-includes/post-template.php
.