Hooks enable users to create WordPress themes or plug-ins with shortcode without changing the original files.
There are two types of hooks :
Action hooks : Action hooks facilitate you to insert an additional code from an outside resource.
Filter hooks : Filter hooks facilitate you to add content or text at the end of the post.