Is there a clean way of doing so? I would prefer doing that in functions.php using some action and/ or filter hooks. The 2nd-best option would be using some good plugin out there. (I haven't seen 1 ...
I have worpdress 3.4 multisite subdirectory set-up. (eg: example.com\username) I also have a buddypress installation installed as a secondary blog.(eg: example.com/community) ...