Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 1 replies (of 1 total)

  • jholder83864
    Participant

    @jholder83864

    Hi there,
    Thanks for assisting! I wanted to grab the id of the person who it is looping through the activity feed so that I can use the ID to look up what group they’re in.

    In any case, I managed to create a function to do that, and it can be used at will.

    `function BSG_is_the_best_show_ever( $array ) {

    global $activities_template;

    //var_dump($activities_template->activity->user_id);

    return $array;
    }`

    Then simply call the filter:
    `add_filter( ‘bp_get_activity_action’, ‘BSG_is_the_best_show_ever’ );`

    Again, a sincere thanks!

Viewing 1 replies (of 1 total)
Skip to toolbar