_override_custom_logo_theme_mod()WP 1.0

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

Internal function — this function is designed to be used by the kernel itself. It is 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.

_override_custom_logo_theme_mod() code WP 6.5.2

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