Hooking is a technique which is used to register an event and to modify a program's behavior when that event occurs, without modifying the original program/code. WordPress has this technique implemented and by using this you can customise it according to your convenience.