bb_register_default_views

The BuddyPress bb register default views function.

Description

bb_register_default_views(); 

Usage

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

Defined (1)

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

/bp-forums/bbpress/bb-includes/functions.bb-core.php  
  1. function bb_register_default_views() { 
  2. // no posts (besides the first one), older than 2 hours 
  3. bb_register_view( 'no-replies', __('Topics with no replies'), array( 'post_count' => 1, 'started' => '<' . gmdate( 'YmdH', time() - 7200 ) ) ); 
  4. bb_register_view( 'untagged' , __('Topics with no tags') , array( 'tag_count' => 0 ) );