# bbp-core/2.0.0/includes/Admin.php

Forumax – AI Powered Advanced Community Forum Plugin, version 2.0.0. 35 lines.

- Page: https://pluginprobe.com/plugins/bbp-core/2.0.0/code/includes/Admin.php
- Raw: https://pluginprobe.com/plugins/bbp-core/2.0.0/raw/includes/Admin.php
- Modified: 2026-01-01T11:09:22+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/bbp-core/2.0.0/code/includes/Admin.php#L10-L20`.

```php
<?php
class Admin {
	/**
	 * Admin class construct
	 */
	public function __construct() {
		add_filter( 'admin_body_class', [ $this, 'body_class' ] );
		new admin\Menu();
	}
	
	/**
	 * Add body class to admin pages.
	 *
	 * @param string $classes Body classes.
	 * @return string
	 */
	public function body_class( $classes ) {
		// if current page is ?page=forumax in admin.
		if ( isset( $_GET['page'] ) && 'forumax' === $_GET['page'] ) {
			$classes .= ' bbpc-forum-ui';
		}

		// if has no pro plan.
		if ( forumax_is_premium() !== true ) {
			$classes .= ' bbpc-no-pro';
		}

		if ( class_exists( 'BBPC_GEO_ROLES' ) ) {
			$classes .= ' bbpc-geo-roles';
		}
		
		return $classes;
	}
}

```
