wp_admin_bar_show_site_icons

wp_admin_bar_show_site_icons

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.0.1

apply_filters('wp_admin_bar_show_site_icons') is found 1 times:

  • /wp-includes/admin-bar.php line 624
    	 * @since 6.0.0
    	 *
    	 * @param bool $show_site_icons Whether site icons should be shown in the toolbar. Default true.
    	 */
    	$show_site_icons = apply_filters( 'wp_admin_bar_show_site_icons', true );
    
    	foreach ( (array) $wp_admin_bar->user->blogs as $blog ) {
    		switch_to_blog( $blog->userblog_id );
    
    		if ( true === $show_site_icons && has_site_icon() ) {
    			$blavatar = sprintf(