Hi
I am trying to do the same thing, and need a bit more explanation, the bit where you say “remove the filter at the end, and then attach that filter” can you spell that out a bit more please?
Do you mean add a line starting remove_filter to the new function? Or take out the code regarding filters from the copied function? ALso the link to that function doesnt work, so I copied it from the plugin code, not sure if that is the same though.
Any help appreciated, thanks