get_site_icon_url
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
wp-includes/general-template.php 993
return apply_filters( 'get_site_icon_url', $url, $size, $blog_id );