custom filter action not being called
-
I’m trying to write a plugin that uses a custom filter hook and I cannot seem to get it to work. It’s been a while since I’ve written any plugin code, but as far as I can tell I’m doing all the right things, so I can’t figure out what’s wrong. Hopefully someone here can help me out.
It’s also quite possible that I’m doing it wrong from a PHP perspective.
In order not to clutter the post I’ve posted pseudocode as a gist at https://gist.github.com/1272309 but essentially I’m calling apply_filter with a hook name and hooking into it in a static method on another class. As far as I can tell (via logging to a text file) the startup/filter hooking code is working properly, but my filter handler’s not ever being called.
Thanks in advance for any suggestions!
The topic ‘custom filter action not being called’ is closed to new replies.