rtmedia_activity_content_html

Description

It’ll help to change the layout of a content of BuddyPress Activity or comment. eg. Change the order of the content display(default order is activity text and then media listor add some markup or separater between the activity text and media list.

Parameters

$activity_content – Concatination of $activity_text and $media_list.
$activity_text – HTML markup of activity text.
$media_list – HTML markup of media in unorderd list(<ul>).

Example

/**
 * Show the activity text below the media list.
 */
add_filter( 'rtmedia_activity_content_html', 'custom_activity_content_html', 10, 3 );

function custom_activity_content_html( $activity_content, $activity_text, $media_list ) {
    return $media_list . $activity_text;
}