WQe had a serious mole problem when we moved in here years ago.
We treated the yards (ours and well into the neighbors with permission) for the food source. Next year they were gone.
Moles? Long term, get rid of their food source: grubs. No food, no moles.
Ground Hogs? Shoot 'em, I guess. Or trap 'em and dispose. Not sure what else works.
1) Terrier
2) Castor Bean plants
3) .22 for the whistle pigs