Filters whether to show the site icons in toolbar.
Description
Returning false to this hook is the recommended way to hide site icons in the toolbar.A truthy return may have negative performance impact on large multisites.
Parameters
$show_site_iconsbool
Whether site icons should be shown in the toolbar. Default true.
676*A truthy return may have negative performance impact on large multisites.677*678* @since 6.0.0679*680* @param bool$show_site_icons Whether site icons should be shown in the toolbar.Defaulttrue.681*/682$show_site_icons=apply_filters('wp_admin_bar_show_site_icons',true);683684foreach((array)$wp_admin_bar->user->blogsas$blog){685switch_to_blog($blog->userblog_id);686687if(true===$show_site_icons&&has_site_icon()){688$blavatar=sprintf(
History
Introduced in 6.0.0. Unchanged from 6.7.7 through 7.1.0.