How to capture menu events

There are 2 ways to capture menu events – Pre & Post.

  • Pre – runs after the menu is clicked but before its execution
  • Post – runs after the menu is clicked & executed.

Below is an example of the Plugin Code

Now you can add Pre or Post command that needs to be handled in the User Plugin.

  • Pre_ : To handle all pre actions
  • Pre_actionName: To handle specific pre action
  • Post_: To handle all post actions
  • Post_actionName: To handle specific post action