Last active
February 4, 2026 21:29
-
-
Save propertyhive/90274ad4dd689881d0887a3140d21a37 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_insert_postarr', 'private_on_insert', 10, 3 ); | |
| function private_on_insert( $data, $property, $import_id ) | |
| { | |
| $data['post_status'] = 'private'; | |
| return $data; | |
| } | |
| add_filter( 'houzez_property_feed_update_postarr', 'keep_title', 10, 4 ); | |
| function keep_title($data, $property, $import_id, $post_id) | |
| { | |
| if ( empty($post_id)) | |
| { | |
| return $data; | |
| } | |
| $post = get_post( $post_id ); | |
| $data['post_title'] = $post->post_title; | |
| $data['post_content'] = $post->post_content; | |
| $data['post_status'] = $post->post_status; | |
| return $data; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment