[buddypress-trac] [BuddyPress Trac] #7847: bp_after_message_content hook not working with BP Nouveau

buddypress-trac noreply at wordpress.org
Mon May 21 17:11:04 UTC 2018


#7847: bp_after_message_content hook not working with BP Nouveau
----------------------------+---------------------
 Reporter:  pareshradadiya  |       Owner:  (none)
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  3.0.1
Component:  Messages        |     Version:
 Severity:  normal          |  Resolution:
 Keywords:                  |
----------------------------+---------------------

Comment (by imath):

 After a deeper look, i confirm {{{bp_after_message_content}}} is fired.
 But it's unusable the way @pareshradadiya tries to use it, because data is
 available in JavaScript and not in PHP, see screenshot below:

 [[Image(https://cldup.com/bVqGLlkx53.png)]]

 What needs to be done imho:
 1. improve the Ajax functions that are fetching the messages data :
  a. by adding a filter to allow plugins to get meta data
  b. or by populating a metas property with all the meta for the message
 using {{{bp_messages_get_meta( bp_get_the_thread_message_id() )}}}
 2. Add some documentation about how to use it to display the meta value
 into the UI.

 I doubt 1.a. can be done for the 3.0.1 maintenance release, 1.b. is easier
 but might cause some performance troubles.

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7847#comment:4>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list