Allow omitting blogs from being recordable and trackable
|Reported by:||tiraeth||Owned by:|
I am sending you a proposal patch to Blogs Component. This update will allow developers to exclude particular blogs from being recordable (prevents them from being saved and listed in Sites Dictionary) and trackable (prevents their activities from being saved in Activity Component).
Trackable flag depends on Recordable flag so that by default if blog is not recordable, it won't be trackable. Proposed functions (and filters) accept $user_id as a parameter for possible exclusion per user.
bp_blogs_is_blog_recordable( $blog_id, $user_id = null ); bp_blogs_is_blog_trackable( $blog_id, $user_id = null );
Added filter hooks:
bp_blogs_is_blog_trackable bp_blogs_is_blog_recordable bp_blogs_is_blog_trackable_for_user bp_blogs_is_blog_recordable_for_user
By telling that blog is trackable for user I mean that activity made by the particular user is trackable.
By telling that blog is recordable for user I mean that a record in user_blogs table is created for the particular user. If blog is not recordable for user, his whole activity (posting, commenting) won't be saved into the activity stream.
The functionality may be very useful (in my case it is) when you want to not record site creation in another network (for example by passing $site_id parameter to wpmu_create_blog).
Change History (6)
- Keywords needs-refresh added; has-patch needs-codex removed
- Milestone changed from Awaiting Review to 1.7