Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save propertyhive/2d021e664a9bc88f164c963ff5acfce2 to your computer and use it in GitHub Desktop.
Save propertyhive/2d021e664a9bc88f164c963ff5acfce2 to your computer and use it in GitHub Desktop.
add_filter( "houzez_property_feed_properties_due_import_rex", 'niche_homes_only', 10, 2 );
function niche_homes_only( $properties, $import_id )
{
$new_properties = array();
foreach ( $properties as $property )
{
if ( isset($property['account']['id']) && $property['account']['id'] == '4281' ) // 4281 = accountID for Niche Homes
{
$new_properties[] = $property;
}
}
return $new_properties;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment