Out of wedlock has 3 different meanings across 2 categories:
Adverb · Prep_phrase
of biological parents not married to each other
"this child was born illegitimately"
of unwed parents
"he was born out of wedlock"
Of parents not legally married.