How to edit the Activity query

I would love to know how to edit the query of the Activity page to sort out some events like "Friendships", or "Changing Avatar", among other stuff. So far I've got to the /vendor/elgg/elgg/river.php, but I don't know if I'm in the right path. Also what relations would I need to filter out the events?

 * List river items
 * @param array $options Any options from elgg_get_river() plus:
 *   item_view  => STR         Alternative view to render list items
 *   pagination => BOOL        Display pagination links (true)
 *   no_results => STR|Closure Message to display if no items
 * @return string
 * @since 1.8.0
function elgg_list_river(array $options = array()) {

    $defaults = array(
        'offset'     => (int) max(get_input('offset', 0), 0),
        'limit'      => (int) max(get_input('limit', max(20, elgg_get_config('default_limit'))), 0),
        'pagination' => true,
        'list_class' => 'elgg-list-river',
        'no_results' => '',

    $options = array_merge($defaults, $options);




Beginning Developers

Beginning Developers

This space is for newcomers, who wish to build a new plugin or to customize an existing one to their liking