WordPress at Your Fingertips
function is not described

_override_custom_logo_theme_mod() WP 1.0

Overrides the custom logo with a site logo, if the option is set.

This is an internal function for using it by WP core itself. It's not recommended to use this function in your code.

No Hooks.

Return

String. The site logo if set.

Usage

_override_custom_logo_theme_mod( $custom_logo );
$custom_logo(string) (required)
The custom logo set by a theme.

Code of _override_custom_logo_theme_mod() WP 5.8.2

function _override_custom_logo_theme_mod( $custom_logo ) {
	$site_logo = get_option( 'site_logo' );
	return false === $site_logo ? $custom_logo : $site_logo;
}