bbp_admin_topics( WP_Screen $current_screen )
Setup bbPress Topics Admin
Description Description
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.
Parameters Parameters
- $current_screen
-
(Required) Current screen object
Source Source
File: includes/admin/topics.php
function bbp_admin_topics( $current_screen ) {
// Bail if not a forum screen
if ( empty( $current_screen->post_type ) || ( bbp_get_topic_post_type() !== $current_screen->post_type ) ) {
return;
}
// Init the topics admin
bbp_admin()->topics = new BBP_Topics_Admin();
}
Changelog Changelog
| Version | Description |
|---|---|
| 2.0.0 | Introduced. |