What is Hooks in wordpress?

Hooks allow the user to create a WordPress theme or plugin with shortcode without changing the original files. Following are two types of hooks A) Action hooks: These hooks allow you to insert an additional code. B) Filter hooks: Filter hooks will only allow you to add content or text at the end of the post.