Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_filter( "propertyhive_blm_properties_due_import", 'blm_certain_types_only' );
- function blm_certain_types_only($properties)
- {
- $new_properties = array();
- foreach ( $properties as $property )
- {
- if (
- isset($property['PROP_SUB_ID']) &&
- (
- $property['PROP_SUB_ID'] == 'X' ||
- $property['PROP_SUB_ID'] == 'X' // Add all type ids here
- )
- )
- {
- $new_properties[] = $property;
- }
- }
- return $new_properties;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement