Morph 3d clothes to customizable character

I know 3d clothes and items get attached to character with sockets,
but what about with characters that are customizable, how do you get the clothes to match the character no matter what the user makes the character look like?

Say for instance using this