It’s quite involved and not really supported. See:
You should try to use a material plugin or a node material instead.
This PR will correct the problem encountered when using the wireframe option: