When any notice relating to any cause, matter or thing depending in any court, shall have been duly published, it may be paid for by the party at whose instance the same was published, and the expense, or so much thereof as shall be deemed reasonable, may be taxed as costs, or otherwise allowed in the course of the proceedings to which such notice shall relate.
715 ILCS 5/7