我只想为自定义用户角色(wdm\\U讲师和小组组长)隐藏许多复选框及其在屏幕中的标签选项。如何应用以下代码,使其仅用于自定义用户角色:

add_action( \'admin_head\', \'remove_wordpress_cfields\' );
function remove_wordpress_cfields() {
echo \'<style>label[for=wpassetcleanup_asset_list-hide] { display: none; }</style>\';
}
任何帮助都很感激