Skip to content

Instantly share code, notes, and snippets.

@craigsimps craigsimps/functions.php
Last active Mar 15, 2018

Embed
What would you like to do?
<?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
You can’t perform that action at this time.