I'm struggling to find the best/quick easy solution to this problem:
I have a plugin that creates companies but stores all of the company info as a user so all information is in the user's profile. I have another plugin (Geo my WP) that only searches for post/pages/cpt's but not users (well they kinda do but based on address and not other user meta data e.g category, which is what i want).
So I thought, if there was a way that when the user creates a profile, a cpt is created and saves some of the data e.g address, maybe category is also stored there as well as post meta data. Seems redundant but then my geolocation plugin works well without heaps of custom changes (if even possible).
Now I'm a bit weary if it is possible to create a cpt automatically and get updated too upon user registration.
Or any other solution?
Btw: I kinda need the Geo my wp as I have other cpt's that I want to use in the search form.
user_register
action andwp_insert_post
. If you search around those two things you can probably cobble some code together to get you started.