[wp-hackers] Hook trouble
dyordan1 at ramapo.edu
Wed Sep 11 16:38:56 UTC 2013
Thanks for that, that's exactly what I ended up doing.
On Wed, 11 Sep 2013, at 11:50 AM, J.D. Grimes wrote:
> Oh, and a solution in your situation would be to add the hook in the maybe_override_function(), if the condition isn't met.
> On Sep 11, 2013, at 11:48 AM, J.D. Grimes <jdg at codesymphony.co> wrote:
>>> In my mind, if my function runs at priority 9, adds a restoring function with priority 11 and then that restoring function re-adds the function at priority 10, the original function which I'm trying to restore will not run. However, it does.
>> If I remember correctly, functions added before the hook has finished running, but after their priority has already run, will be run last. Its odd I know. I think there might be a ticket for that, not sure though.
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
More information about the wp-hackers