Hi Stedwomas
There has been quite a bit of conversation about rats/traps, etc. recently so I’ll add one link here: https://www.hedgehogstreet.org/forums/topic/poisoning-rats-and-hedgehogs-worry/
and will put another on a separate post so they’re all together (the forum doesn’t like more than one link per post, I have found) .
I’m a bit concerned that a hoglet might still be able to squeeze through the opening you are using. Maybe you could put it up somewhere that hog can’t access. Hogs are quite good climbers, but not, I think as good at climbing as rats. Hogs/hoglets may be around in the daytime, too in some circumstances.