Wild boar and moles come into the garden at night and plough up the lawn. Are there any plants that will discourage them?
These are two very different garden invaders, indeed. Here's an article about controlling moles:
https://www.gardeningknowhow.com/plant-problems/pests/animals/mole-control.htm
The wild boars are a different story. This article may help:
https://www.gardeningknowhow.com/plant-problems/pests/animals/growing-javelina-proof-plants.htm