has_site_icon()WP 4.3.0

Determines whether the site has a Site Icon.

Хуков нет.


true|false. Whether the site has a site icon or not.


has_site_icon( $blog_id );
ID of the blog in question.
По умолчанию: current blog

Список изменений

С версии 4.3.0 Введена.

Код has_site_icon() WP 6.3.1

function has_site_icon( $blog_id = 0 ) {
	return (bool) get_site_icon_url( 512, '', $blog_id );