• Resolved spirovski.b

    (@spirovskib)


    I want to show only the Events in the activity stream, with some filtering on when they are happening.

    So far i constructed the code below in my functions.php, but the BP says
    “Sorry, there was no activity found. Please try a different filter.”

    function bpfr_filtering_activity( $retval ) {
    // activities to filter on, comma separated
    $retval[‘object’] = ‘new_event’;
    return $retval;
    }
    add_filter( ‘bp_before_has_activities_parse_args’, ‘bpfr_filtering_activity’ );
    ?>

    Please help

    https://wordpress.org/plugins/events-manager/

Viewing 1 replies (of 1 total)
  • Plugin Support angelo_nwl

    (@angelo_nwl)

    sorry Im afraid that we can’t help with custom coding however you can try to check php file under events-manager/buddypress/bp-em-activity.php

Viewing 1 replies (of 1 total)
  • The topic ‘Showing only events in activity stream’ is closed to new replies.