Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Remove public group updates from SWA

@deshmukh

Participant

@danbp thanks! For the first time, I could read the Codex, understand it and do something meaningful!

In my functions.php, I added the following code:

function myown_bp_activity( $retval ) { 
    $retval['scope'] = 'friends';                                                                                          
    return $retval;
  }

  add_filter('bp_after_has_activities_parse_args', 'myown_bp_activity' );

This makes no difference at all. I guess, default for scope is friends. If I change ‘friends’ to ‘groups’, ALL activities show only group updates.

The area where I am groping in the dark still is:

  • How do I modify ONLY the SWA? What should be the conditional? if (bp_is_SWA)?
  • Secondly, I can get ONLY groups. But I can not still get ONLY status updates. How do I get that? What should be the scope?
Skip to toolbar