Created
January 19, 2026 11:12
-
-
Save propertyhive/f498a686d1e47025eccccf92bd1ca216 to your computer and use it in GitHub Desktop.
Strip HTML from
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_insert_postarr', 'strip_html_from_ea_description', 10, 3 ); | |
| add_filter( 'houzez_property_feed_update_postarr', 'strip_html_from_ea_description', 10, 3 ); | |
| function strip_html_from_ea_description($data, $property, $import_id) | |
| { | |
| $data['post_content'] = strip_tags($data['post_content']); // REMOVE THE HTML HERE | |
| return $data; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment