Skip to content

Instantly share code, notes, and snippets.

@propertyhive
Created November 13, 2024 14:05
Show Gist options
  • Save propertyhive/16b2108be21743a59d9ecc105c05d6c0 to your computer and use it in GitHub Desktop.
Save propertyhive/16b2108be21743a59d9ecc105c05d6c0 to your computer and use it in GitHub Desktop.
add_filter( "houzez_property_feed_properties_due_import_alto", 'specific_firmid', 10, 2 );
function specific_firmid( $properties, $import_id )
{
$new_properties = array();
foreach ( $properties as $property )
{
$property_attributes = $property->attributes();
if ( (string)$property_attributes['firmid'] == '38942' )
{
$new_properties[] = $property;
}
}
return $new_properties;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment