Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Integrating BP search into custom components

What else would it take beyond adding it in here at the core?

function bp_core_action_search_site( $slug = false ) {
global $bp;

if ( $bp->current_component == BP_SEARCH_SLUG ) {
$search_terms = $_POST;
$search_which = $_POST;

if ( !$slug || empty( $slug ) ) {
switch ( $search_which ) {
case ‘classifieds’ : default:
$slug = ”;
$var = ‘/?s=’;
break;
case ‘members’:
$slug = BP_MEMBERS_SLUG;
$var = ‘/?s=’;
break;

I’m trying to do this too but not having any luck…

Skip to toolbar