*Just curious* I erroneously used hook add_action() instead of add_filter() and there was no error and the result was correct. Why is that?
While working on a project I used the incorrect hook type add_action()
which does not exist, yet there was no error notice and the correct result returned. I only realized it was wrong while searching for the method along with the $hook_name
name in the package and it was not found, and when I checked the code reference page, it showed that it is add_filter()
.
Why does it still work?