Remove check boxes and its label from screen option for custom role
I want to hide many check boxes and its label in screen option only for custom user role (wdm_instructor and group_leader). How to apply below code so its for custom user role only:
add_action( 'admin_head', 'remove_wordpress_cfields' );
function remove_wordpress_cfields() {
echo 'stylelabel[for=wpassetcleanup_asset_list-hide] { display: none; }/style';
}
any help really appreciate
Topic screen-options user-roles functions Wordpress
Category Web