[buddypress-trac] [BuddyPress Trac] #7851: Alternative hook to bp_messages_inbox_list_item that can be used with BP Nouveau

buddypress-trac noreply at wordpress.org
Tue May 22 04:03:26 UTC 2018


#7851: Alternative hook to bp_messages_inbox_list_item that can be used with BP
Nouveau
----------------------------+-----------------------------
 Reporter:  pareshradadiya  |      Owner:  (none)
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Templates       |    Version:
 Severity:  normal          |   Keywords:
----------------------------+-----------------------------
 I use `bp_messages_inbox_list_item` to add `<td>` in messages list on
 Inbox page.

 The `bp_before_member_messages_loop` callback function does not works when
 BP Nouveau template pack is enabled.

 Here the code snippets of my use case:

 {{{#!php
 <?php
 add_action( 'bp_messages_inbox_list_item', 'test_message_inbox_list_item'
 );

 function test_message_inbox_list_item() {
         global $messages_template;
         $thread_id = isset( $messages_template->thread->thread_id ) &&
 !empty( $messages_template->thread->thread_id ) ?
 $messages_template->thread->thread_id : '';

         if ( !empty( $thread_id ) ) {
                 $get_thread_data = test_get_message_data( $thread_id );
         }

         // ...more custom code
 }

 }}}

 It would be great if BP Nouveau add similar hook that allow plugin
 developer hook custom function to show custom content in messages list.

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


More information about the buddypress-trac mailing list