[buddypress-trac] [BuddyPress Trac] #6429: Activity Type API

buddypress-trac noreply at wordpress.org
Mon May 11 13:16:32 UTC 2015


#6429: Activity Type API
-------------------------+------------------------------
 Reporter:  modemlooper  |       Owner:
     Type:  idea         |      Status:  new
 Priority:  lowest       |   Milestone:  Awaiting Review
Component:  API          |     Version:  2.2.3
 Severity:  trivial      |  Resolution:
 Keywords:  2nd-opinion  |
-------------------------+------------------------------

Comment (by boonebgorges):

 Something like what imath has suggested with `bp_register_activity_type()`
 sounds a bit more sane than what we currently have. It's worth noting that
 this suggestion involves not just building the wrapper itself, but also
 abstracting some logic that's currently hardcoded (like 'mini' logic).

 As for auto-registering when building a component: I'm still not sure I
 see the big advantage here. I suppose an argument like 'activity=true'
 could register an activity type using some dummy arguments - though in
 almost all cases, those arguments (especially the labels) would need to be
 overridden anyway. There's no way that BP could automatically handle the
 creation of activity items themselves, because BP can't know when a given
 component might *want* activity items to be created (on CPT publish, on a
 specific user action, etc etc etc). But maybe I'm missing the forest for
 the trees here - seeing a plugin that implements some of this stuff would
 probably be helpful.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6429#comment:7>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list