Filter hook 'wp_admin_bar_show_site_icons'

in WP Core File wp-includes/admin-bar.php at line 680

Description

Filters whether to show the site icons in toolbar. 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.

Occurrences

Filename Line Number
wp-includes/admin-bar.php 680

Parameters

Type Name Description
bool $show_site_icons Whether site icons should be shown in the toolbar. Default true.

PHP Doc

/**
	 * Filters whether to show the site icons in toolbar.
	 *
	 * 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.
	 *
	 * @since 6.0.0
	 *
	 * @param bool $show_site_icons Whether site icons should be shown in the toolbar. Default true.
	 */