Skip to content

Instantly share code, notes, and snippets.

@g-maclean
Created April 9, 2025 11:05
Show Gist options
  • Save g-maclean/0592455bbeb3018711d82e5c0840e146 to your computer and use it in GitHub Desktop.
Save g-maclean/0592455bbeb3018711d82e5c0840e146 to your computer and use it in GitHub Desktop.
PropertyHive - Avantio - Use Original Image Size
add_filter('propertyhive_avantio_xml_image_size', 'use_original_image_url', 10, 2);
function use_original_image_url($image, $property)
{
return (string)$image->OriginalURI;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment