BuddyPress Extended Friendship Request

BuddyPress Extended Friendship Request plugin allows users to send a personalized message with the BuddyPress friendship request.

How it works:-

  • When a users clicks on Add friend, It shows him/her a small popup to enter some personalized message
  • The user can enter a personalized message and click on the Send request to send the request.

Please see the screenshots for more details.


Clicking on Add Friend:-

Request sent successfully:-

Friendship Request on Members Directory:-

Request sent Successfully:-

Here is how it looks on User's friendship Request page


The popover is based on the popover plugin from Twitter's bootstrap. We have extracted and modified the code to avoid binding with the specific elements.

Set a default message in the popup form

With version 1.0.9 and above, you can use the following code to add a custom default message.

function buddydev_default_extended_friendship_message( $message ) {

	$message ='Let us get connected!';
	return $message;
add_filter( 'bp_ext_friendship_default_message', 'buddydev_default_extended_friendship_message' );

Closing any/all active popover using javascript event:-

If you trigger the even "bp-ext-friendship-popover:close" on document or any element, all open popover will be closed.


jQuery(document).trigger("bp-ext-friendship-popover:close" );

It will close all active popups.


This plugin changes the class of Friendship button from friendship-button to friendship-button-ext

Blog Post Link: https://buddydev.com/buddypress/introducing-buddypress-extended-friendship-request-plugin/

Release History

  • Version: 1.2.1

    Tuesday, 29 June, 2021
    • Tested With: BuddyPress 8.0.0
    • Compatible With: BuddyPress 6.0+

    Added support for BuddyBoss platform and BP Nouveau

  • Version: 1.2.0

    Wednesday, 13 March, 2019
    • Tested With: BuddyPress 4.2
    • Compatible With: BuddyPress 3.0+

    Updated with WebUI popover for better placements.

  • Version: 1.1.1

    Thursday, 10 August, 2017
    • Tested With: BuddyPress 2.9.0
    • Compatible With: BuddyPress 2.5+

    Updated to add custom javascript event trigger "bp-ext-friendship-popover:close" for closing all active popup.

  • Version: 1.1.0

    Wednesday, 03 May, 2017
    • Tested With: BuddyPress 2.8.2
    • Compatible With: BuddyPress 2.5+

    Fix issue with email notification on new friendship request.

  • Version: 1.0.8

    Monday, 09 January, 2017
    • Tested With: BuddyPress 2.7.4
    • Compatible With: BuddyPress 2.4+

    Update translation files. Follow the current WordPress standards. Also partial refactor of the code.

  • Version: 1.0.3

    Monday, 04 August, 2014
    • Tested With: BuddyPress 2.0.1
    • Compatible With: BuddyPress 1.8+

    Updated to fix a notice and add basic support for mobile devices.

  • Version: 1.0.2

    Wednesday, 03 July, 2013
    • Tested With: BuddyPress 1.7+/BuddyPress1.8
    • Compatible With: BuddyPress 1.7+/BuddyPress1.8

    Updated to avoid a possible security risk with displaying message

  • Version: 1.0.1

    Sunday, 17 March, 2013
    • Tested With: BuddyPress 1.6.4/BuddyPress 1.7 beta2
    • Compatible With: BuddyPress 1.6+

    Added localization support. thanks to the efforts of @anusharma

  • Version: 1.0

    Monday, 03 December, 2012
    • Tested With: BuddyPress 1.6.1
    • Compatible With: BuddyPress 1.6+

    Initial release.