The officers of the several courts of record shall be liable to arrest and may be held to bail in the same manner as other persons, except during the actual sitting of any court of which they are officers; and when sued with any other person such officers shall be liable to arrest and may be held to bail as other persons during the sitting of the court of which they are officers. No attorney or counselor may be exempt from arrest during the sitting of a court of which he or she is an officer unless he or she is employed in some case pending and then to be heard in the court.
Wis. Stat. § 757.26