Last active
August 27, 2025 14:56
-
-
Save propertyhive/34eaf31b0866c9214f69dcf6ec571b96 to your computer and use it in GitHub Desktop.
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_reaxml", 'lowercase_suburb', 10, 2 ); | |
| function lowercase_suburb( $properties, $import_id ) | |
| { | |
| foreach ( $properties as $property ) | |
| { | |
| if ( isset($property->address->suburb) ) | |
| { | |
| $property->address->suburb = ucwords(strtolower((string)$property->address->suburb)); | |
| } | |
| } | |
| return $properties; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment