How to create plugin

Have you checked the WebODM Developer docs:

There is a sample plugin in the WebODM code:

Recently, a Community member published a cool plugin that may help you get started: