Last active
December 19, 2020 01:25
-
-
Save heldervilela/4eecf47278e8658ed76980eb220db69e to your computer and use it in GitHub Desktop.
Add Custom Class to Body
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
/** | |
* 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