bb_search_pages

The BuddyPress bb search pages function.

Description

bb_search_pages( (null) $args = null ); 

Parameters (1)

0. $args — Optional. (null) => null
The args.

Usage

  1. if ( !function_exists( 'bb_search_pages' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-forums/bbpress/bb-includes/functions.bb-template.php'; 
  3.  
  4. // The args. 
  5. $args = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = bb_search_pages($args); 
  9.  

Defined (1)

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

/bp-forums/bbpress/bb-includes/functions.bb-template.php  
  1. function bb_search_pages( $args = null ) { 
  2. global $page, $search_count, $per_page; 
  3.  
  4. $defaults = array( 'before' => '', 'after' => '' ); 
  5. $args = wp_parse_args( $args, $defaults ); 
  6.  
  7. if ( $pages = apply_filters( 'bb_search_pages', get_page_number_links( array( 'page' => $page, 'total' => $search_count, 'per_page' => $per_page, 'mod_rewrite' => false ) ) ) ) 
  8. echo $args['before'] . $pages . $args['after'];