Pls How do i make ALL friendship requests to always be immediately automatically accepted ? – i don’t want users to have to accept friend requests , i would prefer it to be automatically acccepted immediately it’s sent
Hi Iken,
Please avoid bumping quickly. This is a free support question and depends on availability of free time.Here is a solution for your issue
// auto accept friendship. add_action( 'friends_friendship_requested', function ( $friendship_id, $initiator_id, $user_id, $friendship ) { $friendship->is_confirmed = 1; $friendship->save(); }, 10, 4 );
This will auto accept the request but the way template packs have been created, The user will see they have been automatically added in next page reload.
You should also modify the friendship request notification mail to say something more relevant for this use case.
Regards
Brajesh
Viewing 5 posts - 1 through 5 (of 5 total)
The topic ‘ [Resolved] Auto accept all buddypress friendship requests’ is closed to new replies.
This topic is: resolved