SHARE
TWEET

Untitled

a guest Aug 20th, 2019 81 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top