get_site_icon_url
Filter HookDescription
Filters the site icon URL.Hook Information
File Location |
wp-includes/general-template.php
View on GitHub
|
Hook Type | Filter |
Line Number | 993 |
Hook Parameters
Type | Name | Description |
---|---|---|
string
|
$url
|
Site icon URL. |
int
|
$size
|
Size of the site icon. |
int
|
$blog_id
|
ID of the blog to get the site icon for. |
Usage Examples
Basic Usage
<?php
// Hook into get_site_icon_url
add_filter('get_site_icon_url', 'my_custom_filter', 10, 3);
function my_custom_filter($url, $size, $blog_id) {
// Your custom filtering logic here
return $url;
}
Source Code Context
wp-includes/general-template.php:993
- How this hook is used in WordPress core
<?php
988 *
989 * @param string $url Site icon URL.
990 * @param int $size Size of the site icon.
991 * @param int $blog_id ID of the blog to get the site icon for.
992 */
993 return apply_filters( 'get_site_icon_url', $url, $size, $blog_id );
994 }
995
996 /**
997 * Displays the Site Icon URL.
998 *
PHP Documentation
<?php
/**
* Filters the site icon URL.
*
* @since 4.4.0
*
* @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.
*/
Quick Info
- Hook Type: Filter
- Parameters: 3
- File: wp-includes/general-template.php
Related Hooks
Related hooks will be displayed here in future updates.