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?