Code snippets for BuddyPress