bp_search_form_type_select_options

  • apply_filters( 'bp_search_form_type_select_options', $options )

    Source Reference:

    • Component: BuddyPress :: bp-core
      File: /bp-core/bp-core-template.php :: Trac Source Line: 262
      	if ( bp_is_active( 'forums' ) && bp_forums_is_installed_correctly() && bp_forums_has_directory() )
      		$options['forums']  = __( 'Forums',  'buddypress' );
      
      	$options['posts'] = __( 'Posts', 'buddypress' );
      
      	// Eventually this won't be needed and a page will be built to integrate all search results.
      	$selection_box  = '<label for="search-which" class="accessibly-hidden">' . __( 'Search these:', 'buddypress' ) . '</label>';
      	$selection_box .= '<select name="search-which" id="search-which" style="width: auto">';
      
      	$options = apply_filters( 'bp_search_form_type_select_options', $options );
      	foreach( (array)$options as $option_value => $option_title )
      		$selection_box .= sprintf( '<option value="%s">%s</option>', $option_value, $option_title );
      
      	$selection_box .= '</select>';
      
      	return apply_filters( 'bp_search_form_type_select', $selection_box );
      }
      
      /**
       * Get the default text for the search box for a given component.
      

Comments are closed.