If a man was not married to the mother of the child, he has no obligation to pay support for the child, and has no legal right to custody or visitation with the child, unless he is legally named the father of the child, through an order of filiation or an acknowledgment of paternity.