The wages or hire of any head of a family in this state, not having property liable to levy and sale under execution, cannot be defeated or abated by any counterclaim of a money demand acquired by the person contracting to pay such wages by assignment or transfer, unless the parties otherwise agree in writing.
Ala. Code § 6-8-82 (1975)