Jump to content
ploughguy

Steps to define a new hook

Recommended Posts

I am developing a sequential order number solution and it seems like the right thing to do to create it as a plug-in so it can be shared if it gets off the ground.

i have requested a hook at the appropriate place throug github, but until that materialises (probably the wrong word for software) I would like to add a custom hook so I can enjoy the whole developer experience.

Is it enough to copy a nearby hook,then paste it with an adjusted name into the appropriate place?  Is there any other declaration required on the provider side?  I have read that the hooks.xml file is an info-only document, so I believe I don’t have to update that for a personal hook.

Gotta say the whole hook/plug-in/snippet caper is a work of inspired genius, probably just one rung below the recent synchronised Falcon 9 Heavy booster landings.  Full accolades to the perpetrators.  I plan to use it for all my mods.

Russ

Share this post


Link to post
Share on other sites

"Is it enough to copy a nearby hook,then paste it with an adjusted name into the appropriate place?"

That is what you need to do.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×