has_site_icon( int $blog_id )

Whether the site has a Site Icon.


Parameters Parameters

$blog_id

(int) (Optional) ID of the blog in question. Default current blog.


Top ↑

Return Return

(bool) Whether the site has a site icon or not.



Top ↑

Source Source

File: wp-includes/general-template.php

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

Top ↑

Changelog Changelog

Changelog
Version Description
4.3.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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