documentation for remove_action activity streams
I’ve seen a couple examples in some comments, like:
To prevent new entries, try adding this to your theme functions.php
remove_action( ‘bp_register_activity_actions’, ‘friends_register_activity_actions’ );
Can someone add a page to explain for examples,maybe a list of things can be blocked and the underscored code for each?
One bp install I am using I current set the old ‘block activity strames’ plugin to block
friendship_created, blogpost_liked, new_member, joined_group
but I’d like to block “changed profile picture” as well
(it would REALLY awesome to allow one instance of changed profile picture to show in stream, but have something determine that profile pic was changed more than once in last 24 hours, then only show one instance (instead of the dozen added activity “UserX changed profile pic a dozen times)
My old non-updated version of buddypress activity block shows these options:
I am not sure if this is what could/should be added / append to the code that Shanbp had suggested above, and if so how.
Going back through old threads, I see that there was a post about:
Recently introduced function bp_parse_args allows since 2.0 to modify easely your templates. Faster and lighter than a plugin.
Is the parse args better, or is that older and the current preferred method is to use a them functions.php?
Is one lighter on resources than the other..
…confused and not sure what method to use, and how to properly use it.
- The topic ‘documentation for remove_action activity streams’ is closed to new replies.