Created
November 26, 2025 21:26
-
-
Save propertyhive/72c3a8d2df8b96d038a064619915ea7e 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_action( "propertyhive_wpresidence_property_synced", 'set_property_user', 10, 3 ); | |
| function set_property_user($property_id, $post_id, $synced) | |
| { | |
| update_post_meta($post_id, 'property_user', '123'); // Change 123 to the Id of the user in WP you wish to assign to | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment