Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,840
- How-to & Troubleshooting
- 129,881
- Creating & Extending
- 25,910
- Requests & Feedback
- 9,553
- Third Party Plugins
- 9,832
- Showcase
- 3,316
- Ideas
- 1,402
- Miscellaneous
- 9,183
-
Just guessing…
Instead of a filter, try using the action hook:
add_action( 'bp_legacy_theme_ajax_querystring', 'sbpp04_hide_from_ajax_search', 50, 2 );
https://codex.buddypress.org/developer/function-examples/bp_ajax_querystring/