Had a friend of mine that would dig a hole with post hole digger about 2ft deep fill it with sour corn the put cattle panel over it and secure the panel to the ground it definitely keep the hogs in the area just make sure is done off the beaten path
Did the same thing except the panel, and I would add a jello mix with the corn.
Dig a 4'x4' by 3' deep hole, put a layer of corn n jello, cover it with dirt, lay another layer of dirt and jello and so forth till the top layer is dirt.
It held them for months and they dug the hole back out for me so had to little work to clean the bottom and sides up and repeat the baiting again