bboss_global_search_label_search_type

The BuddyPress Global Search bboss global search label type hook.

Description

apply_filters( 'bboss_global_search_label_search_type', (unknown) $item_type ); 

Parameters (1)

0. $item_type (unknown)
The item type.

Usage

To run the hook, copy the example below.
  1. $item_type = apply_filters( 'bboss_global_search_label_search_type', $item_type ); 
  2.  
  3. if ( !empty( $item_type ) ) { 
  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_label_search_type callback 
  2. function filter_bboss_global_search_label_search_type( $item_type ) { 
  3. // make filter magic happen here... 
  4. return $item_type
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'bboss_global_search_label_search_type', 'filter_bboss_global_search_label_search_type', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'bboss_global_search_label_search_type', 'filter_bboss_global_search_label_search_type', 10, 1 ); 

Defined (4)

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

/includes/class.BBoss_Global_Search_Helper.php  
  1. $type_label = apply_filters( 'bboss_global_search_label_search_type', $item['type'] ); 
  1. . "<h2 class='results-group-title'><span>" . apply_filters( 'bboss_global_search_label_search_type', $label ) . "</span></h2>" 
  1. $label = apply_filters( 'bboss_global_search_label_search_type', $all_label ); 
  1. $label = apply_filters( 'bboss_global_search_label_search_type', $label);