Hello,
Is it possible to add a setting to prevent User's recent posts from appearing on the profile page?
Sure, if you want to code it... it won't be a part of 2.1.x core though
Who do you want to hide it from? And why?
Sure you could do that, but simply hiding the link wouldn't do.
You could still pull up any users post history with /index.php?action=profile;area=showposts;u=
For example, https://www.simplemachines.org/community/index.php?action=profile;area=showposts;u=155076
The results for that are already filtered though, it doesn't reveal posts that aren't accessible other ways already, so this kind of seems pointless to be honest.
Actually it would; if you remove the menu item (usually) the underlying area goes away too because they're inextricably interlinked.
But there's nothing in there that can't be found other ways, whether that's through search (filtering on a particular user), or simply browsing the areas that you could otherwise browse.
you can use direct css
.subsections {
display: none;
}