In small amounts peanut butter can be okay for hedgehogs to eat but you need to be careful as there are some possible health concerns when feeding this food to your hedgehog.
The main thing to remember is that you need to only give a little bit as a treat and not often as peanut butter is high in fat and can cause weight issues and diabetes concerns.
Additionally you need to remember that peanut butter is very sticky and can stick to the top of their mouth and this can be a choking hazard.
Therefore if you are to give peanut butter to your hedgehog make sure its in smaller amounts and not too often. You can also consider getting them a lower fat type of peanut butter and avoid ones with nuts.
Ideally you want a natural one that is smooth and only give a little bit as a special treat. Too much can cause a hedgehog to get sick.