Last active
February 20, 2018 09:50
-
-
Save bigdigital/33ce10d3bebd874cb33f7fdc4397d769 to your computer and use it in GitHub Desktop.
The7 change logo url
This file contains hidden or 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
function my_presscore_display_the_logo_url($url) { | |
$url = 'http://example.com'; | |
if ( presscore_is_microsite() && ( $m_url = get_post_meta( $post->ID, '_dt_microsite_logo_link', true ) ) ) { | |
$url = $m_url; | |
} | |
return $url; | |
} | |
add_filter( 'presscore_display_the_logo-url','my_presscore_display_the_logo_url', 10 ,1); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment