The compensation of officers and other expenses of any and all primary elections, general or special, held under the provisions of this chapter, shall be paid in the same manner and to the same extent as is or may be provided by law for the payment of the expenses and officers of general elections held under the general election laws of Alabama and shall be paid out of the county treasury in the same manner.