Last active
December 15, 2016 19:48
-
-
Save hellofromtonya/d5f6da3a5d957399276e29d83ddfe5e2 to your computer and use it in GitHub Desktop.
WordPress `get_body_class` function
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function get_body_class( $class = '' ) { | |
$classes = array(); | |
// build all of the classes | |
// .. omitted for brevity | |
$classes = apply_filters( 'body_class', $classes, $class ); | |
return array_unique( $classes ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment