[buddypress-trac] [BuddyPress Trac] #6429: Activity Type API
buddypress-trac
noreply at wordpress.org
Sun May 10 09:49:50 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 imath):
Tell me if i understand well, just like WordPress have a Post Type / Post
formats API, you suggest to have an Activity API that mimic how WordPress
does?
Like
{{{
bp_register_activity_type( 'reviews', array(
'labels' => array( 'front_end' => __( 'Reviews' ), 'back_end' => __(
'posted a review' ) ),
'supports' => array( 'activity_comments', 'activity_favorites',
'activity_mentions' ),
'activity_format' => 'mini',
'post_type_object' => 'products',
'action_format_callback' => 'plugin_prefix_format_reviews_action',
) );
}}}
and have something to output the activity using different templates just
like post formats ?
I guess, as boonebgorges said this would use existing functions. I can see
an interest if someone want to inject some activity posting/fetching
feature on a specific single page or post. Like a product page. I also
think this is something that would need some shortcodes / UI... So
potentially a long road :)
Using existing filters and actions i think you might almost be able to
begin this API from a plugin and maybe ask for some core modifications
when you're stuck, what do you think ?
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6429#comment:5>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list