Adding rtMedia updates to activity show dropdown

If you want to add rtMedia updates in activity’s show dropdown, use the following piece of code in your function.php file:

add_filter('bp_get_activity_show_filters_options', 'add_media_show_filter', 10, 2);

function add_media_show_filter( $filters, $context ){
    $filters['rtmedia_update'] = 'rtMedia Updates';
    return $filters;


Use this code: if you are using old buddypress templates in your theme.

add_action( 'bp_activity_filter_options', 'rtmedia_update_filter' );

function rtmedia_update_filter() {
    echo '<option value="rtmedia_update">rtMedia Updates</option>';