[buddypress-trac] [BuddyPress Trac] #6682: filter for @mentioned user_ids

buddypress-trac noreply at wordpress.org
Fri Oct 23 19:14:38 UTC 2015

#6682: filter for @mentioned user_ids
 Reporter:  wdfee                 |      Owner:
     Type:  enhancement           |     Status:  new
 Priority:  normal                |  Milestone:  Awaiting Review
Component:  Component - Activity  |    Version:  2.3.3
 Severity:  normal                |   Keywords:
 There is no hook to filter mentioned users. I'd need this in a multi
 network installation to restrict linked names (and sent emails) to members
 of the current site / network only. Another use could be to restrict
 mentioned users to friends only or to group members only (if user was
 mentioned inside a group).
 I'd suggest to add a filter hook to bp-activity-functions.php inside
 function bp_activity_find_mentions(), before sql query is started, line

 // Make sure there's only one instance of each username
 $usernames = apply_filters( 'bp_activity_mentions_usernames_filter',
 array_unique( $usernames[1] ) );

 Maybe related ticket #5954.

Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6682>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac

More information about the buddypress-trac mailing list