Created
August 11, 2016 11:48
-
-
Save propertyhive/35881d93e8f749771a1991c409d63d9e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Logo Block | |
function getCustomLogo() { | |
// set empty return value | |
$logo = get_option('header_logo'); | |
if ($logo !== FALSE) { | |
$logo_url = wp_get_attachment_url($logo); | |
if( $logo_url !== FALSE ) { | |
return $logo_url; | |
} | |
} | |
return false; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment