This chapter shall apply to all officials heretofore or hereafter elected at any special or general election, whether or not they have entered upon the discharge of their duties.