Fix Hook Functionality

This commit is contained in:
Ibnu Maksum
2024-02-29 13:32:46 +07:00
parent 28f4624e8d
commit bae079f71c
3 changed files with 7 additions and 1 deletions

View File

@ -38,6 +38,7 @@ function register_menu($name, $admin, $function, $position, $icon = '', $label =
$hook_registered = array();
function register_hook($action, $function){
global $hook_registered;
$hook_registered[] = [
'action' => $action,
'function' => $function