In all counties where state officials are paid on a salary basis instead of a fee basis, all fees required under the terms of this title to be paid to or collected by such officials shall by said officials be paid to the treasurer of said county or to such official performing the duties of county treasurer, except where otherwise provided.