"Friends Only" custom filter – codex incomplete?
I want to add a custom filter that displays only activity updates from friends.
So I’m reading this…
Add custom filters to loops and enjoy them within your plugin
Firstly…. Seriously? You have to create an entire plug-in just to add a simple filter?
Secondly…. I’ve read this tutorial about 4 times now and I can see how the list item is being added in both the front & backends, but I can’t for the life of me see the actual function that is returning the random order? Where is the database being queried for this new function? All I can see is a new list item being created in the dropdown menu. This doesn’t show me how to add any new functionality whatsoever.
Similarly I was browsing the following in the codex :
Posted in 2009? 6 years old and this is the official doc for the Activity Stream Loop?
Also, plenty of “things” that you can do on this page, but no examples of how to implement them apart from one that apparently “Filters the activity loop to show only activity updates in the activity stream”…
<?php if ( bp_has_activities( bp_ajax_querystring( 'activity' ) . '&action=activity_update' ) ) : ?>
… Which is something that buddypress is already doing by default if i’m not mistaken?
I am constantly finding that it’s other websites and blogs that are actually explaining how buddypress works because I can’t find straight answers in the BP codex. It’s like it’s been written solely for the buddypress dev team and not meant to be understood by anybody else.
Come on guys, please throw us a few crumbs here, this is so frustrating.
- The topic ‘"Friends Only" custom filter – codex incomplete?’ is closed to new replies.