_override_custom_logo_theme_mod() – Overrides the custom logo with a site logo, if the option is set.

You appear to be a bot. Output may be restricted

Description

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

Usage

$string = _override_custom_logo_theme_mod( $custom_logo );

Parameters

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

Returns

string The site logo if set.

Source

File name: wordpress/wp-includes/blocks/site-logo.php
Lines:

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

 View on GitHub View on Trac