bbp_admin_replies( WP_Screen $current_screen )
Setup bbPress Replies 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/replies.php
function bbp_admin_replies( $current_screen ) { // Bail if not a forum screen if ( empty( $current_screen->post_type ) || ( bbp_get_reply_post_type() !== $current_screen->post_type ) ) { return; } // Init the replies admin bbp_admin()->replies = new BBP_Replies_Admin(); }
Changelog Changelog
Version | Description |
---|---|
2.0.0 | Introduced. |