Skip to main content

cPanel event not triggering the execution of my script. Am I doing it wrong?

Comments

2 comments

  • cPanelTJ
    Hi @stards , For Cpanel events, you have to specify the API system in addition to the module/function, API::Module::function
    . For your case, this would be UAPI::Mysql::create_user
    . Additionally, you can turn on Standardized Hooks - Debug Mode in WHM >> Tweak Settings, then call the API using the CLI commands. As part of the return, if a hook is registered to the API event, it will list pre- and post- conditions with any hooks registered for it.
    0
  • stards
    Hi @stards , For Cpanel events, you have to specify the API system in addition to the module/function, API::Module::function
    . For your case, this would be UAPI::Mysql::create_user
    . Additionally, you can turn on Standardized Hooks - Debug Mode in WHM >> Tweak Settings, then call the API using the CLI commands. As part of the return, if a hook is registered to the API event, it will list pre- and post- conditions with any hooks registered for it.

    Very helpful! Thanks TJ.
    0

Please sign in to leave a comment.