[buddypress-trac] [BuddyPress Trac] #5669: Help plugins to generate activities for their post type(s)

buddypress-trac noreply at wordpress.org
Fri Nov 21 15:44:25 UTC 2014


#5669: Help plugins to generate activities for their post type(s)
-----------------------------------+------------------
 Reporter:  imath                  |       Owner:
     Type:  enhancement            |      Status:  new
 Priority:  normal                 |   Milestone:  2.2
Component:  Activity               |     Version:  2.0
 Severity:  normal                 |  Resolution:
 Keywords:  2nd-opinion has-patch  |
-----------------------------------+------------------

Comment (by boonebgorges):

 imath - I like the direction this is going - `add_post_type_support()` is
 a great way to do this.

 Small concern: why collect this data on 'bp_init' with priority 7? I'm
 guessing that plugins will register post support when registering post
 types, which usually happens at 'init:10' or later. Collecting info at
 bp_init:7 (which is init:10) is going to create race conditions. Any
 reason we can't do it later, like 'bp_ready' or something like that?

 Is it possible to stop using `bp_blogs_record_post()`? In other words, we
 would `add_post_type_support( 'post', 'buddypress-activity' )`. It'd be
 nice to centralize our own code.

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


More information about the buddypress-trac mailing list