Timeline for Better to fire specific hooks or generic hooks with parameters?
Current License: CC BY-SA 3.0
2 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 29, 2015 at 13:17 | comment | added | veganista | Although I like your idea of passing through an object for the filter paramaters, i'm not sure it answers my initial question. Also, what do you mean by: "Make the hook name specific to what it does, not where it is called" In the example above the the 'forms_validate' should be hooked into to validate the form based on the $data passed, I have modified the question to make this a bit clearer | |
Apr 23, 2015 at 12:27 | history | answered | fuxia♦ | CC BY-SA 3.0 |