using filter and hook inside class


I’m going deep with oop to create wordpress plugins. I’ve found an interesting article about the hooks and how to use them inside a class.
After reading I have some doubt: is correct to use the hooks inside the construcor or it’s better to use a method instead of the constructor?
What’s the best practice to define a filter or an hook inside a class?

, , , sialfa 2 years 2020-01-11T08:38:41-05:00 0 Answers 86 views 0

Leave an answer