Skip to content

Instantly share code, notes, and snippets.

@propertyhive
Created February 4, 2026 21:40
Show Gist options
  • Select an option

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

Select an option

Save propertyhive/c7740eb71a77d799ba703a7404c60141 to your computer and use it in GitHub Desktop.
Filter Apimo feed by user ID(s)
add_filter( "houzez_property_feed_properties_due_import_apimo", 'filter_by_user', 10, 2 );
function filter_by_user($properties, $import_id)
{
$new_properties = array();
foreach ( $properties as $property )
{
if (
$property['user']['id'] == '122544' ||
$property['user']['id'] == '26907394'
)
{
$new_properties[] = $property;
}
}
return $new_properties;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment