Skip to:
Content

BuddyPress.org

Opened 14 years ago

Closed 14 years ago

#2078 closed enhancement (fixed)

Filter: Create a "bp_activity_can_favorite"?

Reported by: nuprn1's profile nuprn1 Owned by:
Milestone: 1.5 Priority: minor
Severity: Version:
Component: Core Keywords:
Cc:

Description

Just like the previous ticket request for creating a bp_activity_can_comment filter - how about adding the ability to disable favorites on certain activity types

Change History (2)

#1 @boonebgorges
14 years ago

  • Component set to Core

Yay! Filters for everyone!

I'm adding a very barebones apply_filters(). In your custom filter function, call up $activities_template and fish through $activities_template->activity to allow or disallow favoriting as you'd like.

#2 @boonebgorges
14 years ago

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

(In [3400]) Adds bp_activity_can_favorite() to allow plugin authors to filter favoritability of activity items. Fixes #2078

Note: See TracTickets for help on using tickets.