[buddypress-trac] [BuddyPress Trac] #6312: post_type_support - ajax changes the activity entry action
buddypress-trac
noreply at wordpress.org
Tue Mar 24 23:04:44 UTC 2015
#6312: post_type_support - ajax changes the activity entry action
----------------------------------+------------------------------
Reporter: shanebp | Owner: imath
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: Awaiting Review
Component: Component - Activity | Version: 2.2.1
Severity: normal | Resolution:
Keywords: reporter-feedback |
----------------------------------+------------------------------
Comment (by shanebp):
Adding the labels in register_post_type works.
Adding this in register_post_type works.
{{{
'bp_activity' => array(
'component_id' => buddypress()->activity->id,
'action_id' => 'new_cpt',
'contexts' => array( 'activity', 'member', 'groups',
'member-groups' ),
'position' => 40,
),
}}}
The only issue now, and this is particular to a personal plugin...
if a cpt post is assigned to a group, I create a custom activity entry
using '''groups_record_activity()'''
It works fine in terms of creation and where it appears.
But in the Show filter dropdowns on a profile page > Groups and on the
group home page, the Show filter does not include the '''label >
'bp_activity_front_filter'''' value. It does appear on SWA > My Groups.
Is there a better way to approach ?
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6312#comment:8>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list