apply_filters( 'get_custom_logo', string $html, int $blog_id )
- Since
- 4.5.0, 4.6.0
Filters the custom logo output.
Compatibility
- WordPress
- since 4.6.0
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
Parameters
$htmlstring- Custom logo HTML output.
$blog_idint- ID of the blog to get the custom logo for.
Where this hook fires · 1
wp-includes/general-template.php:1152get_custom_logo()
Source code
* @since 4.5.0 * @since 4.6.0 Added the `$blog_id` parameter. * * @param string $html Custom logo HTML output. * @param int $blog_id ID of the blog to get the custom logo for. */ return apply_filters( 'get_custom_logo', $html, $blog_id );} /** * Displays a custom logo, linked to home unless the theme supports removing the link on the home page. * * @since 4.5.0Changelog
Introduced in 4.5.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
4.6.0
Added the
$blog_id parameter.from the docblock4.5.0
Introduced.from the docblock
About this page
- Parsed data
- Generated from the wordpress-develop 6.7.7 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.