WordPress disable icon in site list for multisite network

Original link: https://www.wpdaxue.com/wordpress-multisite-disables-site-icons.html

wp_admin_bar_show_site_icons-wpdaxue_com

WordPress 5.8 adds icons to the site list for multisite networks: When you have a large number of sites, it can make pages load significantly slower. To this end, WordPress 6.0 added a hook wp_admin_bar_show_site_icons that allows us to disable this icon. If you still need to display icons, WordPress 6.0+ has added lazy loading for icons, which can be removed if the loading attribute is not appropriate for a specific site in this context. For more information, please see the official log. Disclaimer: All articles on this site, unless otherwise specified or marked, are originally published on this site. Any individual or organization, without the

This article is reprinted from: https://www.wpdaxue.com/wordpress-multisite-disables-site-icons.html
This site is for inclusion only, and the copyright belongs to the original author.

Leave a Comment