This function has been deprecated. BuddyPress 2.1.0 instead.
bp_core_load_buddybar_css()
Enqueue the BuddyBar CSS.
Description
Source
File: bp-core/deprecated/buddypress/2.1.php
function bp_core_load_buddybar_css() {
if ( bp_use_wp_admin_bar() || ( (int) bp_get_option( 'hide-loggedout-adminbar' ) && !is_user_logged_in() ) || ( defined( 'BP_DISABLE_ADMIN_BAR' ) && BP_DISABLE_ADMIN_BAR ) ) {
return;
}
$min = bp_core_get_minified_asset_suffix();
if ( file_exists( get_stylesheet_directory() . '/_inc/css/adminbar.css' ) ) { // Backwards compatibility
$stylesheet = get_stylesheet_directory_uri() . '/_inc/css/adminbar.css';
} else {
$stylesheet = buddypress()->plugin_url . "bp-core/css/buddybar{$min}.css";
}
wp_enqueue_style( 'bp-admin-bar', apply_filters( 'bp_core_buddybar_rtl_css', $stylesheet ), array(), bp_get_version() );
wp_style_add_data( 'bp-admin-bar', 'rtl', true );
if ( $min ) {
wp_style_add_data( 'bp-admin-bar', 'suffix', $min );
}
}
Changelog
| Version | Description |
|---|---|
| BuddyPress 2.1.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.