Created
April 2, 2015 14:01
-
-
Save JudeRosario/395de815b238a63a9ce8 to your computer and use it in GitHub Desktop.
Custom Code
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
function wpa66834_role_admin_body_class( $classes ) { | |
global $current_user; | |
if(in_array('subscriber', $current_user->roles) | |
$classes .= ' role-' . $role; | |
return trim( $classes ); | |
} | |
add_filter( 'admin_body_class', 'wpa66834_role_admin_body_class' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment