Last active
March 15, 2018 13:44
-
-
Save craigsimps/f40eaf0c30c9d1de75778a5c2f9963da to your computer and use it in GitHub Desktop.
This file contains 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
<?php | |
/** | |
* Add custom body class. | |
* | |
* @param array $classes Array of existing body classes. | |
* | |
* @return array | |
*/ | |
add_filter( 'body_class', function( $classes ) { | |
return array_merge( $classes, [ 'custom-body-class' ] ); | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment