Hoffecker was originally a member of the
Whig Party, but like so many others, became a Republican in 1856. He was a delegate to the
Republican National Convention in 1876 and 1884. He was also president of the Smyrna town council from 1878 until 1898. Elected to the state House in 1888, he served in the 1889–90 session and was elected Speaker. He ran for governor in 1896 as the candidate of both the Union Republicans (controlled by (
J. Edward Addicks), and the National Party (a rival to the
Prohibition Party). However, enough votes went to the regular (Anti-Addicks) Republican candidate,
John C. Higgins, that Democrat
Ebe W. Tunnell was elected. Hoffecker was elected to the U.S. House of Representatives in 1898, defeating incumbent Democratic U.S. Representative
L. Irving Handy. He served in the Republican majority in the 56th Congress. On June 16, 1900, during a visit home from the 1900
Republican National Convention in Philadelphia, Hoffecker suffered a stroke and died. He had served from March 4, 1899, until his death, during the administration of U.S. President
William McKinley. ==Death and legacy==