your github link is 404?
Yup, private repository. Can’t give the product away for free. 😉 … I just put the link for my own reference for later if I’m searching through.
I noticed a minor gotcha in that the priority here is 5, so previous instructions to hook at 9 to override JS should be updated to take this into account.
So in the end, I have to both dequeue the prettyphoto styles and scripts, as well as hook the filter. I would suggest modifying your dependency filter routines to fully control loading of these various components. Then a simple filter hook is all that’s needed to modify the output.
Yeah I see where the confusion is on some of these things in what you’re trying to do. These dependency arrays were added to make life easier in other aspects of including assets, but I guess add an extra step for those doing what you’re trying to do.
I’ve got this in the next update, and also modified how those dependency arrays get built.
If you have any thoughts on this, feel free to share, as this change is not officially published just yet.