bb_deregister_view

The BuddyPress bb deregister view function.

Description

bb_deregister_view( $view ); 

Parameters (1)

0. $view
The view.

Usage

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

Defined (1)

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

/bp-forums/bbpress/bb-includes/functions.bb-core.php  
  1. function bb_deregister_view( $view ) { 
  2. global $bb_views; 
  3.  
  4. $view = bb_slug_sanitize( $view ); 
  5. if ( !isset($bb_views[$view]) ) 
  6. return false; 
  7.  
  8. unset($GLOBALS['bb_views'][$view]); 
  9. return true;