Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What are the types of hooks?



What are the types of hooks?..

Answer / Madhur Pratap Singh

Hooks in WordPress are functions that allow you to interact with your WordPress site at specific points during the execution of PHP code. There are two main types of hooks: actions and filters.

1. Actions: These hooks allow you to execute custom functionality at various points in the WordPress life cycle (e.g., `init`, `wp_head`, and `save_post`). You can attach your functions to these action hooks using the `add_action()` function.
2. Filters: These hooks enable you to modify or manipulate data before it is saved or outputted by WordPress (e.g., post content, user registration details, and comment text). You can use the `add_filter()` function to attach your functions to filter hooks.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More WordPress Interview Questions

Is wordpress secure?

1 Answers  


What is the loop in WordPress?

1 Answers  


What are basic necessities for a theme?

1 Answers  


What is data taxonomy?

1 Answers  


Can wordPress use cookies?

1 Answers  


How can I hide my blog from people?

1 Answers  


Do you need ftp for wordpress?

1 Answers  


What's the difference between pages and posts on wordpress?

1 Answers  


Is hosting free with wordpress?

1 Answers  


What is the use of mail server in wordpress writing setting?

1 Answers  


What are the features of wordpress?

1 Answers  


If the variable $a is equal to 5 and variable $b is equal to character a, what's the value of $$b?

1 Answers  


Categories