Jump to content

Steps to define a new hook


ploughguy

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...