1

This code worked for me: function alterImageSRC($image, $attachment_id, $size, $icon){ if ( is_front_page() ) { return $image; } $image[0] = 'http://newimagesrc.com/myimage.jpg'; return $image; } add_filter('wp_get_attachment_image_src', 'alterImageSRC', 10, 4);


Only top voted, non community-wiki answers of a minimum length are eligible