Skip to content

Instantly share code, notes, and snippets.

@propertyhive
Created February 18, 2026 11:26
Show Gist options
  • Select an option

  • Save propertyhive/bdeaaa88083f3039858c09f237eccb01 to your computer and use it in GitHub Desktop.

Select an option

Save propertyhive/bdeaaa88083f3039858c09f237eccb01 to your computer and use it in GitHub Desktop.
add_filter( "houzez_property_feed_properties_due_import_resales_online", 'malaga_only', 10, 2 );
function malaga_only($properties, $import_id)
{
$new_properties = array();
foreach ( $properties as $property )
{
if ( (string)$property->province == 'Málaga' )
{
$new_properties[] = $property;
}
}
return $new_properties;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment