[buddypress-trac] [BuddyPress] #4527: Allow omitting blogs from being recordable and trackable
buddypress-trac at lists.automattic.com
buddypress-trac at lists.automattic.com
Fri Sep 14 10:50:38 UTC 2012
#4527: Allow omitting blogs from being recordable and trackable
-------------------------+-----------------------------------
Reporter: tiraeth | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Blogs | Version: 1.7
Severity: normal | Keywords: has-patch needs-codex
-------------------------+-----------------------------------
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.
Function definitions:
{{{
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'').
This patch also includes #4337 to make BuddyPress network-aware.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4527>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list