I have a CPT called House which includes an ACF text field: user-email
I also have an ACF User meta field: house-id
When a user creates a House post I need to update their user meta field: house-id with the ID of the post they created
How would I do that?
This might be some help:
You’ll be looking at creating a function that uses the WordPress
save_post hook, more info on that here.
Not a complete answer I know, but it’ll hopefully give you some direction.