No person offered as a witness in any action or proceeding in any court, or before any officer acting judicially, shall be excluded by reason of the person’s interests in the event of the action or proceeding, or because the person is a party thereto, except as provided in this chapter.