All the expenses of printing the tickets or primary election ballots, for necessary stationery, and for paying the managers, clerks and returning officer of every primary election authorized by this chapter held in any county shall be paid by the board of supervisors of such county out of the general funds of the county, but such officers of primary elections shall receive only such compensation as is authorized by Section 23-15-227 to be paid managers, clerks and returning officer for like services in holding elections thereunder. However, this section shall not apply to the expenses of a primary election held by any political party which at either of the last two (2) preceding general elections for the office of Governor or either of the last two (2) preceding national elections for President of the United States did not vote as many as twenty percent (20%) of the total vote cast in the entire state.