Custom before and after action injectors

Discussion in 'Feature Requests' started by variable99, Nov 4, 2025.

  1. variable99

    variable99 Active Member HowtoForge Supporter

    I would like to see feature that helps to hook into ISPC action execution without modifying systems files.
    For example:
    Delete user action
    Flow:
    1. Fires custom "before" action (some preparations, maybe custom backup archiving etc.)
    2. Deletes user as per ISPC behavior
    3. Fires custom "after" action (informs admin user via XYZ channels, does some custom clean-up)
    Those "hook" action could be prioritized based on number:
    100-before_delete_user_hook.inc.php
    100-after_delete_user_hook.inc.php

    Keywords such as "before", "after" indicates custom injector and "delete_user" indicates corresponding action (function) in ISPC. Can be placed like "conf-custom" -> "hooks-custom" or similar.

    Benefits:
    1. Allows custom admin defined actions without interrupting standard ISPC flow;
    2. Greatly enhance integration with other systems. No more hacking with API or raw database queries and messing ISPC libs;
    3. Adds possibility to override standard ISPC actions. For example: custom user delete action, custom website deployment steps etc.
     

Share This Page