Not sure. I always just jury-rigged my own custom 'wear-equip-unequip' code rather than relying on Quest's inbuilt.
I'm not sure you'd need to create an entire new function. Maybe a new /verb/ at most?
On the desktop version, I believe you can edit the core commands. Just change the pattern, everything else can stay the same.
You might also want to override the function
_SetVerbsForGarment, which adds "Wear" and "Remove" to an object's inventoryverbs based on whether it's worn or not.