Skip to:
Content

BuddyPress.org

Changes between Initial Version and Version 1 of Ticket #7918, comment 3


Ignore:
Timestamp:
07/10/2018 05:33:43 PM (7 years ago)
Author:
r-a-y
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #7918, comment 3

    initial v1  
    1 @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?
     1@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'` in your `WbCom_BP_Activity_Filter_Public_Setting` class.  Can you try that?
    22
    33`'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.