There are two types hooks are available in WordPress, action hooks and filter hooks
They allow the user to, with short snippets of code, modify areas in a theme or plugin without modifying the original file.
What are the types of hooks in WP and what are their functions?