add_action( ‘admin_head’, function () {
$user = wp_get_current_user();
if( is_user_logged_in() ) {
$user = wp_get_current_user();
$roles = ( array ) $user->roles;
if($roles[0] == “shop_manager”){
echo “
“;
}} } );
add_action( ‘admin_head’, function () {
$user = wp_get_current_user();
if( is_user_logged_in() ) {
$user = wp_get_current_user();
$roles = ( array ) $user->roles;
if($roles[0] == “shop_manager”){
echo “
“;
}} } );