Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: URGENT – How To Set Default Values?

@boonebgorges

Keymaster

The most elegant way to do this is to filter bp_ajax_querystring. Detect whether you’re looking at the activity stream, and if the querystring is empty, add arguments that show friends’ activity.

Here’s a thread with an example on how to build such a filter (yours will do a few more conditional checks first): https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/add-filters-to-if-bp_has_activities-bp_ajax_querystring-activity/#post-88068

And here is some guidance on the arguments taken by bp_has_activity(): https://codex.buddypress.org/developer-docs/custom-buddypress-loops/the-activity-stream-loop/

Skip to toolbar