wpseo_admin_bar_style

Enqueue CSS to format the Yoast SEO adminbar item.

Description

wpseo_admin_bar_style(); 

Usage

  1. if ( !function_exists( 'wpseo_admin_bar_style' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'yoast-seo/inc/wpseo-non-ajax-functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = wpseo_admin_bar_style(); 
  7.  

Defined (1)

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

/inc/wpseo-non-ajax-functions.php  
  1. function wpseo_admin_bar_style() { 
  2.  
  3. if ( ! is_admin_bar_showing() ) { 
  4. return; 
  5.  
  6. $asset_manager = new WPSEO_Admin_Asset_Manager(); 
  7. $asset_manager->register_assets(); 
  8. $asset_manager->enqueue_style( 'adminbar' );