Created
March 4, 2013 11:13
-
-
Save Pross/5081593 to your computer and use it in GitHub Desktop.
Change logo image for one post/page with filter.
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
add_action( 'pagelines_logo_url', 'change_logo_url' ); | |
function change_logo_url( $url ){ | |
// $url contains original image url. | |
// lets change the image for one page. | |
global $post; | |
if( 96 == $post->ID ) | |
$url = 'http://placekitten.com/g/200/300'; | |
return $url; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment