Page tree
Skip to end of metadata
Go to start of metadata

Standardized Hooks


About Standardized Hooks

  • The Standardized Hooks system triggers scripts or applications whenever a specific action is performed in cPanel & WHM.
  • This functionality is useful for developers and system administrators.

Compatible with:

  • cPanel 11.32+
  • WHM 11.32+

Related Documentation

  • Page:
  • Page:
    Tweak Settings - Development

    Standardized Hooks - Debug Mode

    The Standardized Hooks System’s debug mode helps to troubleshoot hook issues. For more information, read our Guide to Standardized Hooks - Debug Mode documentation.

    You can select the following options:

    • Debug mode is off. — The system does not display debug information or log it to the error log.
    • Debug mode is on. The system displays information about a hook while it executes, but does not log debug data to the error log.
    • Debug mode is on. The system displays information about a hook while it executes and logs debug data to the error log.

      Important:

      This setting outputs a large amount of data.

    • Debug mode is on. The system displays information about every stage for every hookable event, even if no hooks exist for that stage.

    This setting defaults to Debug mode is off.

    Note:

    If, instead of this setting, you use the /var/cpanel/debughooks file to enable debug mode, your locale may revert to the English defaults for JavaScript elements. To fix this problem, run the following commands to disable debug mode and restart the cpsrvd daemon:

    echo -n > /var/cpanel/debughooks
    /scripts/restartsrv_cpsrvd
  • Page:
    WHM API 1 Functions - reorder_hooks — This function changes the order of script hooks.
  • Page:
    WHM API 1 Functions - delete_hook — This function removes a script hook.
  • Page:
    WHM API 1 Functions - edit_hook — This function edits a script hook.

  • No labels