(a) A final judgment of adoption automatically vacates any judgment or order providing a grandparent visitation with an adoptee, unless the adoptee has been adopted pursuant to Section 26-10E-26 or Section 26-10E-27.
(b) In an adoption case proceeding under Section 26-10E-26 or Section 26-10E-27, pre-adoption or post-adoption grandparent visitation rights may be granted, maintained, or modified by the court at any time before or after the final judgment of adoption is entered if it is in the best interests of the adoptee.
(c) In the case of a stepparent adoption under Section 26-10E-26, no grandparent visitation rights may be granted, maintained, or modified over the objection of the spouse of the adoptive stepparent absent compliance with Section 30-3-4.2. Otherwise, Section 30-3-4.2 shall not apply in a case involving an adoptee but grandparent visitation rights shall be determined based upon the best interests of the adoptee.
(d) An order or judgment regarding grandparent visitation made in a case under this section may only be vacated or modified by the court that entered the order or judgment.