/*Reverse sticky header*/
  1. Home
  2. Knowledge Base
  3. Customizations
  4. PHP Functions
  5. How to change the redirect link for site invites (eg. “To accept this invitation, please click here”)

How to change the redirect link for site invites (eg. “To accept this invitation, please click here”)

Please be advised that there’s currently no out-of-the-box option to do this in BuddyBoss.

Modifications are typically considered custom work, but we are making an exception in this case. Kindly check our Support Policy here: https://www.buddyboss.com/support-policy/.

Kindly try adding the following code in your theme files:

1. Go to Appearance > Theme File Editor

2. Under “Select theme to edit”, choose (BuddyBoss Child/Whatever theme is active), then click “Select”.

3. Below Theme Files, select Theme Functions (functions.php).

4. Append the following just before the closing PHP tag “?>”:

add_filter('bp_member_invitation_accept_url', function () { return home_url(); });

NOTE: Please make a backup of your site.

5. Click “Update File”.

Was this article helpful?

Related Articles

Need Support?

Can't find the answer you're looking for?
Contact Support

To speak to our Agency consultant, fill in the form found at our Contact Page.

"*" indicates required fields

Get Started

Enter your name and email address to get started with your project...

Name*