Every person who shall be in the custody of the sheriff of any county by virtue of an order of arrest, or writ of ne exeat or surrender by the person's bail upon an order of arrest, execution except when issued in a civil action for the recovery of a forfeiture or penalty, or attachment in proceedings for contempts, not criminal, issued for nonpayment of costs or of any sum of money ordered to be paid in a civil action shall be entitled to be admitted to such jail liberties upon executing the bond prescribed in s. 898.17.
Wis. Stat. § 898.16