wp_admin_bar_show_site_icons WordPress Filter Hook

The wp_admin_bar_show_site_icons hook allows you to show or hide the site icons in the WordPress admin bar. By default, the icons are shown.

apply_filters( 'wp_admin_bar_show_site_icons', bool $show_site_icons ) #

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.


Top ↑

Parameters

$show_site_icons

(bool)Whether site icons should be shown in the toolbar. Default true.


Top ↑

Source

File: wp-includes/admin-bar.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
6.0.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.