Adding Child Users to Parent Users
-
I’m hoping someone might help me brainstorm and solve this issue, or point me in the direction of some articles that can help me achieve this:
Once users are registered to this site, I want them to be able to add their pets to their account. The pets need to have profiles, avatars, etc, but I’m not sure how to go about associating pets to site users with WordPress.
The best idea I’ve had so far is to add pets as users (auto-generated unique username/pw), put them in a custom role, and give them a meta key that contains the pet owner’s user id. That way, I can use all the user queries like I normally would and would have a field mapping that pet to the owner.
This feels like a hack, but I’m not sure that there is a better way to go about it. Any ideas?
The topic ‘Adding Child Users to Parent Users’ is closed to new replies.