How to remove/hide collapse menu for user/subscriber?
I want to remove/hide the collapse menu item from the dashboard for user/subscriber role only. I don't want to remove it from the admin dashboard.
I am the code below to remove it entirely which was posted here previously but I need to make it apply for user/subscriber only.
Can someone assist?
?php
function wpse_remove_collapse() {
echo 'style type=text/css#collapse-menu { display: none; visibility: hidden; }/style';
}
add_action('admin_head', 'wpse_remove_collapse');
?