Skip to content

Developer Guide

BuddyPress Friend & Follow Suggestions exposes a collection of WordPress actions and filters that let you customize how suggestions are generated, scored, displayed, and emailed — without touching core plugin files.

This guide covers:

There are no REST API endpoints, WP-CLI commands, or custom database tables introduced by this plugin beyond those created on activation.


The plugin’s main class file is buddypress-friend-follow-suggestion.php. The engine runs in two layers:

  1. Score calculationBuddypress_Friend_Follow_Suggestion_Public::buddypress_friend_follow_compatibility_score() computes a 0–100 integer for any user pair based on xProfile field overlap.
  2. Suggestion assemblybffs_get_suggestion_members() (in includes/buddypress-friend-follow-suggestions-functions.php) builds the final sorted list, applies exclusions, and writes to a transient cache.

All public functions and their hooks are namespaced under the bffs_ or bp_suggestions_ prefixes.