bp_core_admin_body_classes

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

Description

(string) bp_core_admin_body_classes( (string) $classes ); 

Returns (string)

Parameters (1)

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

Usage

  1. if ( !function_exists( 'bp_core_admin_body_classes' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-core/admin/bp-core-admin-functions.php'; 
  3.  
  4. // CSS classes for the body tag in the admin, a comma separated string. 
  5. $classes = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = bp_core_admin_body_classes($classes); 
  9.  

Defined (1)

The function is defined in the following location(s).

/bp-core/admin/bp-core-admin-functions.php  
  1. function bp_core_admin_body_classes( $classes ) { 
  2. return $classes . 'buddypress;