bbp_get_search_query_args

Return the search's query args.

Description

(array) bbp_get_search_query_args(); 

Returns (array)

Query arguments


Usage

  1. if ( !function_exists( 'bbp_get_search_query_args' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bbpress/includes/search/functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bbp_get_search_query_args(); 
  7.  

Defined (1)

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

/includes/search/functions.php  
  1. function bbp_get_search_query_args() { 
  2.  
  3. // Get search terms 
  4. $search_terms = bbp_get_search_terms(); 
  5. $retval = !empty( $search_terms ) ? array( 's' => $search_terms ) : array(); 
  6.  
  7. return apply_filters( 'bbp_get_search_query_args', $retval );