If both parties to a marriage have obtained marriage and family therapy by a licensed marriage and family therapist, the therapist shall not be competent to testify in an alimony or divorce action concerning information acquired in the course of the therapeutic relationship. This section shall not apply to custody actions.