has_site_icon

Whether the site has a Site Icon.

Description

has_site_icon( (int) $blog_id = 0 ); 

Parameters (1)

0. $blog_id — Optional. (int)
ID of the blog in question. Default current blog.

Usage

  1. if ( !function_exists( 'has_site_icon' ) ) { 
  2. require_once ABSPATH . WPINC . '/general-template.php'; 
  3.  
  4. // Optional. ID of the blog in question. Default current blog. 
  5. $blog_id = -1; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = has_site_icon($blog_id); 
  9.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/general-template.php  
  1. function has_site_icon( $blog_id = 0 ) { 
  2. return (bool) get_site_icon_url( 512, '', $blog_id );