Skip to content

Instantly share code, notes, and snippets.

@propertyhive
Created November 26, 2025 21:26
Show Gist options
  • Select an option

  • Save propertyhive/72c3a8d2df8b96d038a064619915ea7e to your computer and use it in GitHub Desktop.

Select an option

Save propertyhive/72c3a8d2df8b96d038a064619915ea7e to your computer and use it in GitHub Desktop.
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