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.


Top ↑

Source

File: wp-includes/general-template.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.6.0Added the $blog_id parameter.
4.5.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More