Вы должны объединить оба ответа:
function remove_shortcode_for_user_roles( $content ) {
$user = wp_get_current_user();
if ( in_array( 'administrator', (array) $user->roles ) == false &&
in_array( 'other_role', (array) $user->roles ) == false ) {
$content = strip_shortcodes( $content );
}
return $content;
}
add_filter( 'the_content', 'remove_shortcode_for_user_roles' );
"other_role" - это другая роль, которую вы также хотите исключить из разборки шорткода.