[buddypress-trac] [BuddyPress Trac] #6293: Support customising of activity content for custom post type activities
buddypress-trac
noreply at wordpress.org
Sat Mar 14 12:12:16 UTC 2015
#6293: Support customising of activity content for custom post type activities
--------------------------+-----------------------------
Reporter: rogercoathup | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: API | Version:
Severity: normal | Keywords:
--------------------------+-----------------------------
The new code for custom post type activities provides a mechanism for
customising the activity action field, but doesn't provide a means to
customise the activity content field.
Customising activity content requires access to the post for which the
activity is being generated. I suggest this is best achieved by:
1. passing a content callback function as a parameter when the custom post
type activity tracking is registered
(bp_activity_set_post_type_tracking_args), and / or
2. providing a filter (hooked on the activity type) that allows the
content to the overridden before saving
If option 1, I'm not sure if this is extendable to the register_post_type
mechanism for custom post type activity tracking registration.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6293>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list