apply_filters( ‘wp_admin_bar_show_site_icons’, bool $show_site_icons )

In this article

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.

Source

$show_site_icons = apply_filters( 'wp_admin_bar_show_site_icons', true );

Changelog

VersionDescription
6.0.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.