When the cause of action, after the commencement of the action, by assignment, or in any other manner, becomes the property of a person not a party thereto, and the prosecution or defense is thereafter continued, such person shall be liable for the costs in the same manner as if he were a party, and payment thereof may be enforced by execution.
[Code 1881 § 521; 1877 p 110 § 525; 1869 p 125 § 473; 1854 p 203 § 383; RRS § 490.]