bp_core_admin_body_classes( string $classes )

Add a “buddypress” class to body element of wp-admin.

Description

Parameters

$classes

(Required) CSS classes for the body tag in the admin, a comma separated string.

Return

(string)

Source

File: bp-core/admin/bp-core-admin-functions.php

function bp_core_admin_body_classes( $classes ) {
	return $classes . ' buddypress';
}

Changelog

Changelog
Version Description
BuddyPress 2.8.0 Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.