Reply To: Remove items from the Activity Filter Menu
If you remove a filter, you can’t use it.
Try:
function pauld_bp_get_activity_show_filters_options( $filters, $context ) {
if ( 'activity' == $context ) {
$remove_these = array('Friendships', 'New Members');
foreach ( $filters as $key => $val ) {
if ( in_array( $val, $remove_these ) )
unset( $filters[ $key ] );
}
}
return $filters;
};
add_filter( 'bp_get_activity_show_filters_options', 'pauld_bp_get_activity_show_filters_options', 20, 2 );