add_hook

omni.kit.menu.utils.scripts.add_hook(callback: Callable)

add a menu modification callback hook callback is function to be called when menus are re-generated