Skip to content

Instantly share code, notes, and snippets.

@heldervilela
Last active December 19, 2020 01:25
Show Gist options
  • Save heldervilela/4eecf47278e8658ed76980eb220db69e to your computer and use it in GitHub Desktop.
Save heldervilela/4eecf47278e8658ed76980eb220db69e to your computer and use it in GitHub Desktop.
Add Custom Class to Body
/**
* Add custom class to body
*
* @since 1.0.0
*/
add_filter( 'admin_body_class', function( $classes ) {
$classes .= ' --my-class-name ';
return $classes;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment