Skip to:

Opened 9 years ago

Closed 9 years ago

#4527 closed enhancement (fixed)

Allow omitting blogs from being recordable and trackable

Reported by: tiraeth Owned by:
Milestone: 1.7 Priority: normal
Severity: normal Version: 1.6.1
Component: Blogs Keywords: commit


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:


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.

Attachments (1)

patchfile.patch (2.3 KB) - added by tiraeth 9 years ago.
Fixed patch file

Download all attachments as: .zip

Change History (6)

#1 @tiraeth
9 years ago

Removed #4337 change from this patch to not make you guys confused so that now the patch contains only proposed functionalites.

#2 @tiraeth
9 years ago

  • Version changed from 1.7 to 1.6.1

9 years ago

Fixed patch file

#3 @DJPaul
9 years ago

  • Keywords needs-refresh added; has-patch needs-codex removed
  • Milestone changed from Awaiting Review to 1.7

I think trackable/recordable is a little confusing, and we could come up with better names, but that's semantics.

#4 @johnjamesjacoby
9 years ago

  • Keywords commit added; needs-refresh removed

I like this; I think the trackable/recordable is confusing, but it sticks to existing nomenclature.

#5 @johnjamesjacoby
9 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [6602]) Allow specific blogs to be removed from blog tracking by third-party plugins. Props tiraeth. Fixes #4527.

Note: See TracTickets for help on using tickets.