[buddypress-trac] [BuddyPress Trac] #7362: Query only registered activity types like WP_Query does with post types
buddypress-trac
noreply at wordpress.org
Fri Nov 25 14:43:51 UTC 2016
#7362: Query only registered activity types like WP_Query does with post types
-------------------------+------------------------------
Reporter: Offereins | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Activity | Version:
Severity: normal | Resolution:
Keywords: |
-------------------------+------------------------------
Comment (by Offereins):
Just found out that `bp_activity_set_action()` comes with a like-minded
notice:
{{{#!php
* While it's possible to post items to the activity stream whose types
are
* not registered using bp_activity_set_action(), it is not recommended;
* unregistered types will not be displayed properly in the activity admin
* panel, and dynamic action generation (which is essential for
multilingual
* sites, etc) will not work.
}}}
Essentially, this very mention is what I'd like to see in practice. The
action strings are already registered in `$bp->activity->actions` (per
component), so there's no need for an additional `bp_activity_types`
collection.
Perhaps we can offer an option toggle to add an additional query filter
that does this. For now, I'll use a custom solution in my situation(s).
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7362#comment:1>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list