wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



_override_custom_logo_theme_mod › WordPress Function

Depuisn/a
Dépréciéen/a
_override_custom_logo_theme_mod ( $custom_logo )
Paramètres:
  • (string) $custom_logo The custom logo set by a theme.
    Requis: Oui
Retourne:
  • (string) The site logo if set.
Défini(e) dans:
Codex:

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



Source

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