wpseek.com
A WordPress-centric search engine for devs and theme authors



_override_custom_logo_theme_mod › WordPress Function

Sincen/a
Deprecatedn/a
_override_custom_logo_theme_mod ( $custom_logo )
Parameters:
  • (string) $custom_logo The custom logo set by a theme.
    Required: Yes
Returns:
  • (string) The site logo if set.
Defined at:
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;
}