bbp_admin_forums( WP_Screen $current_screen )

Setup bbPress Forums 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


Top ↑

Source Source

File: includes/admin/forums.php

function bbp_admin_forums( $current_screen ) {

	// Bail if not a forum screen
	if ( empty( $current_screen->post_type ) || ( bbp_get_forum_post_type() !== $current_screen->post_type ) ) {
		return;
	}

	// Init the forums admin
	bbp_admin()->forums = new BBP_Forums_Admin();
}

Top ↑

Changelog Changelog

Changelog
Version Description
2.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.