[buddypress-trac] [BuddyPress Trac] #7847: bp_after_message_content hook not working with BP Nouveau
buddypress-trac
noreply at wordpress.org
Mon May 21 12:46:44 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: Awaiting Review
Component: Core | Version:
Severity: normal | Keywords:
----------------------------+-----------------------------
bp_after_message_content hook does not work when BP Nouveau is active.
I use `bp_after_message_content` to display some custom stuff after each
messages.
So when BP Nouveau is active, my callback function hooked into
`bp_after_message_content` never get call.
I have done something like this:
{{{
add_action( 'bp_after_message_content', 'test_message_meta_display' ) );
function test_message_meta_display() {
$message_id = (int) bp_get_the_thread_message_id();
$meta = bp_messages_get_meta( $message_id, 'message_meta' );
ob_start();
// ..some more custom code
$content = ob_get_contents();
ob_end_clean();
echo str_replace("\n","",$content);
}
}}}
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7847>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list