src/Hook/Restriction.php
/**
     * Add hook to allow execution, invalid hooks will be ignored
     *
     * @param string $hook
     */
Add hook to allow execution, invalid hooks will be ignored
@param string $hook
Add hook to allow execution invalid hooks will be ignored @param string $hook
private function allowHook(string $hook): void
    {
        if (Util::isValid($hook)) {
            $this->applicableHooks[$hook] = true;
            foreach (Hooks::getNativeHooksForVirtualHook($hook) as $nativeHook) {
                $this->applicableHooks[$nativeHook] = true;
            }
        }
    }
private function allowHook ( string $ hook ) : void { if ( Util :: isValid ( $ hook ) ) { $ this -> applicableHooks [ $ hook ] = true ; foreach ( Hooks :: getNativeHooksForVirtualHook ( $ hook ) as $ nativeHook ) { $ this -> applicableHooks [ $ nativeHook ] = true ; } } }
Add hook to allow execution, invalid hooks will be ignored
 @param string $hook
Add hook to allow execution invalid hooks will be ignored @param string $hook
// also allow all native hook if a virtual hook is used