Website_context in hooks.py of own app not working

So you can call any function that you put in your hooks.py just like that? Because I did the exact thing but my function just "print"s something to the console. But that isn’t showing up. Where is documented that you can implement your own functions like that?