bbp_deregister_view( string $view )
Deregister a Forums view
Description
Parameters
- $view
-
(Required) View name
Return
(bool) False if the view doesn't exist, true on success
Source
File: bp-forums/core/functions.php
function bbp_deregister_view( $view ) {
$bbp = bbpress();
$view = sanitize_title( $view );
if ( !isset( $bbp->views[$view] ) )
return false;
unset( $bbp->views[$view] );
return true;
}
Changelog
| Version | Description |
|---|---|
| bbPress (r2789) | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.