You can check the current user role in the same action and apply “display none” for that specific user role
$user = wp_get_current_user();
if ( in_array( 'author', (array) $user->roles ) ) {
//The user has the "author" role
}
You can check the current user role in the same action and apply “display none” for that specific user role
$user = wp_get_current_user();
if ( in_array( 'author', (array) $user->roles ) ) {
//The user has the "author" role
}