Notes: Starting version 4.2.1, this functionality does not require a filter as this code has been moved to rtMedia Core
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;
}
OR
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>';
}