Skip to:
Content

BuddyPress.org

Changeset 11348


Ignore:
Timestamp:
12/28/2016 08:33:03 PM (3 years ago)
Author:
slaffik
Message:

Admin area: Add a buddypress class to body element of wp-admin.

This would help third party plugins stylize the admin area more specifically when BuddyPress is active.

See #7353.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/admin/bp-core-admin-functions.php

    r11256 r11348  
    13251325}
    13261326add_action( 'wp_ajax_bp_dismiss_notice', 'bp_core_admin_notice_dismiss_callback' );
     1327
     1328/**
     1329 * Add a "buddypress" class to body element of wp-admin.
     1330 *
     1331 * @since 2.8.0
     1332 *
     1333 * @param string $classes CSS classes for the body tag in the admin, a comma separated string.
     1334 *
     1335 * @return string
     1336 */
     1337function bp_core_admin_body_classes( $classes ) {
     1338    return $classes . ' buddypress';
     1339}
     1340add_filter( 'admin_body_class', 'bp_core_admin_body_classes' );
Note: See TracChangeset for help on using the changeset viewer.