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.
Parameters
- $show_site_icons
(bool)Whether site icons should be shown in the toolbar. Default true.
Source
Changelog
Version | Description |
---|---|
6.0.0 | Introduced. |