wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



_override_custom_logo_theme_mod › WordPress Function

Odn/a
Przestarzałyn/a
_override_custom_logo_theme_mod ( $custom_logo )
Parametry:
  • (string) $custom_logo The custom logo set by a theme.
    Wymagane: Tak
Powrót:
  • (string) The site logo if set.
Zdefiniowane na:
Codex:

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



Źródło

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