bbp_admin_forums

Setup bbPress Forums Admin.

Description

bbp_admin_forums(); 

This is currently here to make hooking and unhooking of the admin UI easy. It could use dependency injection in the future, but for now this is easier.


Usage

  1. if ( !function_exists( 'bbp_admin_forums' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bbpress/includes/admin/forums.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bbp_admin_forums(); 
  7.  

Defined (1)

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

/includes/admin/forums.php  
  1. function bbp_admin_forums() { 
  2. bbpress)->admin->forums = new BBP_Forums_Admin();