get_site_icon_url filter-hookWP 4.4.0

Filters the site icon URL.

Usage

add_filter( 'get_site_icon_url', 'wp_kama_get_site_icon_url_filter', 10, 3 );

/**
 * Function for `get_site_icon_url` filter-hook.
 * 
 * @param string $url     Site icon URL.
 * @param int    $size    Size of the site icon.
 * @param int    $blog_id ID of the blog to get the site icon for.
 *
 * @return string
 */
function wp_kama_get_site_icon_url_filter( $url, $size, $blog_id ){

	// filter...
	return $url;
}
$url(string)
Site icon URL.
$size(int)
Size of the site icon.
$blog_id(int)
ID of the blog to get the site icon for.

Changelog

Since 4.4.0 Introduced.

Where the hook is called

get_site_icon_url()
get_site_icon_url
wp-includes/general-template.php 987
return apply_filters( 'get_site_icon_url', $url, $size, $blog_id );

Where the hook is used in WordPress

Usage not found.