bbp_get_view_query_args

Return the view's query arguments.

Description

(array) bbp_get_view_query_args( (string) $view ); 

Returns (array)

Query arguments

Parameters (1)

0. $view (string)
The view.

Usage

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

Defined (1)

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

/includes/core/functions.php  
  1. function bbp_get_view_query_args( $view ) { 
  2. $view = bbp_get_view_id( $view ); 
  3. $retval = !empty( $view ) ?bbpress)->views[$view]['query'] : false; 
  4.  
  5. return apply_filters( 'bbp_get_view_query_args', $retval, $view );