Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 24,027
- How-to & Troubleshooting
- 129,661
- Creating & Extending
- 25,794
- Requests & Feedback
- 9,497
- Third Party Plugins
- 9,793
- Showcase
- 3,316
- Ideas
- 1,374
- Miscellaneous
- 9,181
-
You’d be better off replacing the SQL using the two filters on those queries.
For example
function my_custom_sql() {
global $wpdb;
return $wpdb->prepare( "My Custom Query" );
}
add_filter( 'bp_core_search_users_sql', 'my_custom_sql' );
The same goes for the count SQL.