[buddypress-trac] [BuddyPress] #3460: Support custom post types in activity stream

buddypress-trac noreply at wordpress.org
Tue May 21 05:11:25 UTC 2013


#3460: Support custom post types in activity stream
--------------------------+---------------------------
 Reporter:  boonebgorges  |       Owner:  boonebgorges
     Type:  enhancement   |      Status:  new
 Priority:  low           |   Milestone:  1.8
Component:  Activity      |     Version:  1.2.8
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+---------------------------

Comment (by trishasalas):

 First step

 {{{
 // Don't record this if it's not a post
         if ( in_array( $post->post_type, apply_filters(
 'bp_blogs_record_all_post_types', array( 'page', 'revision',
 'nav_menu_item', 'attachment' ) ) ) )
                 return false;
 }}}

 This allows all with the exception of WordPress default post_types.
 Tested on my dev blog and it works for just the one cpt i tried. I also
 added a page and it was filtered out.  No surprise as it's fairly
 straight-forward code.

 @boonegorges, if this isn't a good approach or if there is a better
 approach please let me know.

 My next step is to add 'wrote a new cpt' in the stream rather than the
 default 'post'.  After that I'll tackle the admin...and try to make it
 'clever'.  I'll admit, the only idea I've got right now is check
 boxes...but I'm thinking :)

 http://trishacod.es/activity/

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/3460#comment:12>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list