How to set Wire Display as default via code?

Is there any example of how we can set Wire Display via code so when connected to the node it will be Hidden?
Can anyone point me to an example?

thanks implemented