What are the hooks? Define different types of hooks in wordpress.
Answer Posted / Neetu Pandey
Hooks in WordPress are points in the code where you can add custom functionality. They allow developers to modify the behavior of the core functionality. There are two main types of hooks: 1. Action Hooks - These trigger a function when a specific event occurs. Examples include 'init', 'save_post', and 'wp_head'. 2. Filter Hooks - These allow you to modify data before it is used. Examples include 'the_title' (modifies the title of a post) and 'comment_text' (modifies the text of a comment).
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers