get_site_icon_url
Filters the site icon URL.
Использование
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(строка)
- Site icon URL.
- $size(int)
- Size of the site icon.
- $blog_id(int)
- ID of the blog to get the site icon for.
Список изменений
| С версии 4.4.0 | Введена. |
Где вызывается хук
get_site_icon_url
wp-includes/general-template.php 993
return apply_filters( 'get_site_icon_url', $url, $size, $blog_id );