Created
March 27, 2019 21:01
-
-
Save generatepress/bb5b5b84350f725ba3deaf5ee126c4cc to your computer and use it in GitHub Desktop.
Filter logo URL when using Polylang
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
add_filter( 'generate_logo_href', function( $url ) { | |
if ( function_exists( 'pll_home_url' ) ) { | |
return pll_home_url(); | |
} | |
return $url; | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment