bboss_global_search_class_search_wrap

The BuddyPress Global Search bboss global search class wrap hook.

Description

apply_filters( 'bboss_global_search_class_search_wrap', (string) $bboss_results_wrap, (unknown) $label ); 

Parameters (2)

0. $bboss_results_wrap (string) => 'bboss-results-wrap'
The bboss results wrap.
1. $label (unknown)
The label.

Usage

To run the hook, copy the example below.
  1. $bboss_results_wrap = apply_filters( 'bboss_global_search_class_search_wrap', $bboss_results_wrap, $label ); 
  2.  
  3. if ( !empty( $bboss_results_wrap ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the bboss_global_search_class_search_wrap callback 
  2. function filter_bboss_global_search_class_search_wrap( $bboss_results_wrap, $label ) { 
  3. // make filter magic happen here... 
  4. return $bboss_results_wrap
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'bboss_global_search_class_search_wrap', 'filter_bboss_global_search_class_search_wrap', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'bboss_global_search_class_search_wrap', 'filter_bboss_global_search_class_search_wrap', 10, 2 ); 

Defined (2)

The filter is defined in the following location(s).

/includes/class.BBoss_Global_Search_Helper.php  
  1. $start_html = "<div class='results-group results-group-{$type} ". apply_filters( 'bboss_global_search_class_search_wrap', 'bboss-results-wrap', $label ) ."'>" 
  1. $start_html = "<div class='results-group results-group-{$args['search_subset']} ". apply_filters( 'bboss_global_search_class_search_wrap', 'bboss-results-wrap', $args['search_subset'] ) ."'>"