hooks: introduce AFTER_FUNC_HOOK