Handling file requests with the WordPress Rewrite API
I occasionally have a need to divert file requests on a website to a PHP script. By doing so, I can determine whether the visitor may access it, see whether an image should have a watermark automatically applied, or notify…
Published on 20th October 2016