How can I make hooks in php. I am not sure on how wordpress process their hooks. This is a short example that I wanted to do.
I have a script tag on my register.php file and I wanted it to move on the **<head>**
I need an example on how to do this. Thanks in advance.