get_custom_logo WordPress Filter Hook
The get_custom_logo hook is used to get the custom logo set for a Wordpress site. This can be useful if you need to programmatically get the logo URL or output the logo in a theme.
apply_filters( 'get_custom_logo', string $html , int $blog_id ) #
Filters the custom logo output.
Parameters
- $html
(string)Custom logo HTML output.
- $blog_id
(int)ID of the blog to get the custom logo for.
Source
Changelog
Version | Description |
---|---|
4.6.0 | Added the $blog_id parameter. |
4.5.0 | Introduced. |