Created
February 4, 2026 21:40
-
-
Save propertyhive/c7740eb71a77d799ba703a7404c60141 to your computer and use it in GitHub Desktop.
Filter Apimo feed by user ID(s)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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