This plugin will "block" an activity record from being saved to the stream/database. Such as new member registration, joining groups, friend
You may scan the bp-core code, plugin code, or attempt to view the types already entered into the database.
When bp-core or a plugin attempts to record a new activity - this plugin will block the database insert (by nulling out the type prior to saving - bp_activity_type_before_save )
Certain types are hardcoded into the theme file bp-default/activity/index.php - you may need to remove the html select option
Some plugins may register the do_action( 'bp_activity_filter_options' ) - there is no way to filter these out automatically and may require editing the plugin's core files - remove the action hook.
This plugin does not remove previous logged activity items - you'll need to manually delete these.
You may hook on the filter
bp_activity_block_denied_activity_type_check which provides all activity level data. From here you can provide your own logic to block an activity record. ie, blog_id
See this forum thread for details: http://etivite.com/groups/buddypress/forum/topic/quick-tip-hooking-block-activity-stream-types-plugin-on-a-granular-level/
Sorry, since you blocked certain types from the database - nothing was ever saved to begin with.
Please contact me on http://etivite.com
Requires: PHP 5.2, WordPress 3.2.1, BuddyPress 1.5.1 or higher
Compatible up to: PHP 5.3.x, WordPress 3.2.1, BuddyPress 1.5.1
Last Updated: 2011-10-28
Got something to say? Need help?