bp_core_enqueue_admin_bar_css

Enqueue supplemental WordPress Toolbar styling.

Description

bp_core_enqueue_admin_bar_css(); 

Usage

  1. if ( !function_exists( 'bp_core_enqueue_admin_bar_css' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-core/bp-core-adminbar.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bp_core_enqueue_admin_bar_css(); 
  7.  

Defined (1)

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

/bp-core/bp-core-adminbar.php  
  1. function bp_core_enqueue_admin_bar_css() { 
  2.  
  3. // Bail if not using WordPress's admin bar or it's not showing on this 
  4. // page request. 
  5. if ( ! bp_use_wp_admin_bar() || ! is_admin_bar_showing() ) { 
  6. return; 
  7.  
  8. // Enqueue the additional adminbar css. 
  9. wp_enqueue_style( 'bp-admin-bar' );