Add custom context menu entries in Outliner when right click actors

Hi, what I want to achieve is to add custom context menu entries when you right click actors in the Outliner window.

There are a few tutorials about adding entries for Context Browser assets but very few for Outliner actors. I found this post but it’s old (10 years ago) and someone from the thread pointed out this was not the best way to extend the editor’s context menus.

So, I was wondering as of now, how can I customize the context menu for the Outliner panel, particularly for specific actor classes?

Thank you very much!

I find the Actor Action Utility can serve this purpose, but with some limitations, e.g., customizing the action hierarchy in the context menu when right-clicking an actor.

I still wonder how to achieve this in C++. Opening the Actor Action Utility definition in C++ and tracing the call chain, I cannot find where I should start with. It seems that many things are entangled with each other.