bbp_remove_view_all

Remove 'view=all' from query string.

Description

(string) bbp_remove_view_all( (string) $original_link = '' ); 

Returns (string)

The link with 'view=all' appended if necessary

Parameters (1)

0. $original_link — Optional. (string) => ''
Original Link to be modified

Usage

  1. if ( !function_exists( 'bbp_remove_view_all' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bbpress/includes/common/functions.php'; 
  3.  
  4. // Original Link to be modified 
  5. $original_link = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = bbp_remove_view_all($original_link); 
  9.  

Defined (1)

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

/includes/common/functions.php  
  1. function bbp_remove_view_all( $original_link = '' ) { 
  2. return apply_filters( 'bbp_add_view_all', remove_query_arg( 'view', $original_link ), $original_link );