[buddypress-trac] [BuddyPress Trac] #8293: Add filter to allow manipulation of recipients in message thread

buddypress-trac noreply at wordpress.org
Thu May 7 11:39:22 UTC 2020


#8293: Add filter to allow manipulation of recipients in message thread
----------------------------+-----------------------------
 Reporter:  mangopeargroup  |      Owner:  (none)
     Type:  enhancement     |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Messages        |    Version:  5.2.0
 Severity:  trivial         |   Keywords:
----------------------------+-----------------------------
 It would be quite useful to be able to manipulate the list of receipients
 shown on a message thread (i.e. adding additional data to array or
 amending the order of the list that's shown).

 By adding a filter, we can manipulate the array of recipients before
 they're AJAX-ed to the template.

 **buddypress/bp-templates/bp-nouveau/includes/ajax.php**
 Line 460

 {{{
 return apply_filters( 'bp_get_user_message_threads_recipients',
 $thread->thread['recipients'] );
 }}}

 My use case is that I want to custom sort the list by user meta and I
 think this is the easiest, and best, way of doing so.

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


More information about the buddypress-trac mailing list