What is difference between action hook and filter hook?



What is difference between action hook and filter hook?..

Answer / Raghavendra Singh

Action hooks trigger functions or methods when certain events occur, such as saving a post or displaying an admin page. Filter hooks allow developers to modify data before it's saved or displayed by passing the data through a filter function. Unlike action hooks, filter hooks do not trigger actions directly but return modified data.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More PHP Interview Questions

What are psrs? Choose 1 and briefly describe it?

1 Answers  


How do I install php?

1 Answers  


Will php die?

1 Answers  


Why php is better?

1 Answers  


How to include a file code in different files in php?

1 Answers  


How do you debug php?

1 Answers  


How can you increase the maximum execution time of a script in php?

1 Answers  


how many error types in php? name there?

5 Answers  


What does $_server means?

1 Answers  


Do you know what does mvc stand for and what does each component do?

1 Answers  


What are the different ways to login to a remote server? Explain the means, advantages and disadvantages?

1 Answers  


What is basic php?

1 Answers  


Categories