[buddypress-trac] [BuddyPress Trac] #7918: Filter for bp_nouveau_get_filter_options to change dropdown options
buddypress-trac
noreply at wordpress.org
Tue Jul 10 16:56:33 UTC 2018
#7918: Filter for bp_nouveau_get_filter_options to change dropdown options
-------------------------------------------+---------------------
Reporter: wbcomdesigns | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.2.0
Component: Templates | Version: 3.0.0
Severity: normal | Resolution:
Keywords: reporter-feedback 2nd-opinion |
-------------------------------------------+---------------------
Changes (by r-a-y):
* keywords: => reporter-feedback 2nd-opinion
Comment:
@wbcomdesigns - I took a look at your `bp-activity-filter` plugin and how
Nouveau works and I think you can fix this problem if you hook your plugin
to `'bp_get_activity_show_filters_options'` instead of
`'bp_get_activity_show_filters'`. Can you try that?
`'bp_get_activity_show_filters'` outputs the entire `<option>` HTML,
whereas `'bp_get_activity_show_filters_options'` filters the dropdown
options as an array. So the latter is easier to work with and you won't
have to deal with HTML.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7918#comment:3>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list