Followers vs BP Connections
-
Hi.
I love your plugin.I have a question. Im trying to add some code so that only people who mutually follow each other can send Private Messages to each other to cut spam.
Looking thru the BP forum, I found the code to do that, but it only works for those using Buddypress’s “Friend connections”. Doesn’t work with Buddypress Follow plugin.
Here’s the code snippet :
add_filter( 'bp_get_send_message_button', function( $array ) { if ( friends_check_friendship( bp_loggedin_user_id(), bp_displayed_user_id() ) ) { return $array; } else { return ''; } } );
How can I use this with your Follow plugin.
Thank you in advance.Im on the latest WP and BP versions.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Followers vs BP Connections’ is closed to new replies.