wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



_override_custom_logo_theme_mod › WordPress Function

Seitn/v
Veraltetn/v
_override_custom_logo_theme_mod ( $custom_logo )
Parameter:
  • (string) $custom_logo The custom logo set by a theme.
    Erforderlich: Ja
Gibt zurück:
  • (string) The site logo if set.
Definiert in:
Codex:

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



Quellcode

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