Any property seized under any attachment, where the plaintiff has given bond, may be retained by, or returned to, the person in whose possession it was, on his giving bond, with condition to have the same forthcoming at such time and place as the court may require; or the defendant in any attachment may release from the attachment the whole of the estate attached, by giving bond, with condition to perform the judgment or decree of the court. The bond, in either case, shall be taken by the officer serving the attachment, with security, payable to the plaintiff, and in a penalty, in the latter case, of at least the amount of the claim for which the attachment issued, with the costs, and in the former, either of the amount of the claim for which the attachment issued, with the costs, or of the value of the property retained or returned, at the option of the person giving it.
W. Va. Code § 38-7-20