There are strict rules in New Zealand regarding feeding of food waste to pigs, in order to prevent animal health and biosecurity issues.
MPI have developed guidelines, including a short video, on these requirements.
You can review and download information on feeding food waste to pigs here.