bp_dtheme_ajax_querystring

The BuddyPress bp dtheme ajax querystring hook.

Description

apply_filters( 'bp_dtheme_ajax_querystring', (unknown) $query_string, (unknown) $object, (unknown) $object_filter, (unknown) $object_scope, (unknown) $object_page, (unknown) $object_search_terms, (unknown) $object_extras ); 

Parameters (7)

0. $query_string (unknown)
The query string.
1. $object (unknown)
The object.
2. $object_filter (unknown)
The object filter.
3. $object_scope (unknown)
The object scope.
4. $object_page (unknown)
The object page.
5. $object_search_terms (unknown)
The object search terms.
6. $object_extras (unknown)
The object extras.

Usage

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

Defined (1)

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

/bp-themes/bp-default/_inc/ajax.php  
  1. return apply_filters( 'bp_dtheme_ajax_querystring', $query_string, $object, $object_filter, $object_scope, $object_page, $object_search_terms, $object_extras );