First of all, if the daughter is unmarried, there will be no one to worship after her death, let alone enter the ancestral temple.
If you are a daughter-in-law, you can enter the ancestral temple after death. Divorced people are not allowed to enter the ancestral temple.
If you die after divorce, you won't be in your husband's family, and your mother's family generally doesn't count. Because you are married, if you remarry, you can enter her remarried family ancestral hall. If not, then I don't know.
-I'm from Chaoshan. Ask my mother for the answer. I don't know if it's right.