Skip to content

Instantly share code, notes, and snippets.

@Pross
Created March 4, 2013 11:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Pross/5081593 to your computer and use it in GitHub Desktop.
Save Pross/5081593 to your computer and use it in GitHub Desktop.
Change logo image for one post/page with filter.
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