get_custom_logo filter-hookWP 4.5.0

Filters the custom logo output.

Usage

add_filter( 'get_custom_logo', 'wp_kama_get_custom_logo_filter', 10, 2 );

/**
 * Function for `get_custom_logo` filter-hook.
 * 
 * @param string $html    Custom logo HTML output.
 * @param int    $blog_id ID of the blog to get the custom logo for.
 *
 * @return string
 */
function wp_kama_get_custom_logo_filter( $html, $blog_id ){

	// filter...
	return $html;
}
$html(string)
Custom logo HTML output.
$blog_id(int)
ID of the blog to get the custom logo for.

Changelog

Since 4.5.0 Introduced.
Since 4.6.0 Added the $blog_id parameter.

Where the hook is called

get_custom_logo()
get_custom_logo
wp-includes/general-template.php 1142
return apply_filters( 'get_custom_logo', $html, $blog_id );

Where the hook is used in WordPress

Usage not found.