When the official of any county secures bond from a surety company the cost of such bond shall be paid by the governing body of the county out of the ordinary county funds.