Criminal Procedure Act 2011, s 205
The court has the power to make orders suppressing the reporting of court proceedings, if the publication would be likely to:
cause undue hardship to any victim of the offence
create a real risk of making the trial unfair
put any person in danger
lead to the identification of a person whose name is suppressed
interfere with the operation of the law or the security or defence of New Zealand.