bp_search_form_type_select

  • apply_filters( 'bp_search_form_type_select', $selection_box )

    Source Reference:

    • Component: BuddyPress :: bp-core
      File: /bp-core/bp-core-template.php :: Trac Source Line: 268
      	$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.
       *
       * @global object $bp BuddyPress global settings
       * @return string
       * @since 1.5
       */
      function bp_search_default_text( $component = '' ) {
      

Comments are closed.