Advertisement
Guest User

Untitled

a guest
Aug 20th, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. add_filter( "propertyhive_blm_properties_due_import", 'blm_certain_types_only' );
  2. function blm_certain_types_only($properties)
  3. {
  4. $new_properties = array();
  5. foreach ( $properties as $property )
  6. {
  7. if (
  8. isset($property['PROP_SUB_ID']) &&
  9. (
  10. $property['PROP_SUB_ID'] == 'X' ||
  11. $property['PROP_SUB_ID'] == 'X' // Add all type ids here
  12. )
  13. )
  14. {
  15. $new_properties[] = $property;
  16. }
  17. }
  18.  
  19. return $new_properties;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement