New Filter: ‘wherego_get_referer’
-
Hey there
I have some attachments which are loaded via AJAX on a bootstrap modal and therefore my
$_SERVER['HTTP_REFERER']
value is incorrect, so I added awherego_get_referer
filter (i called it referer and not referrer to match PHP’s var…) which allows me to override the referer value. this way I am able to keep the ‘last-seen’ attachment on the$_SESSION
global var and then place it as the server referrer.Here is the plugin changes snippet:
https://gist.github.com/Binternet/bdf1e064fcb3cd46654f59a1d871e120And here is my code which is loaded on the HTML page which is loaded via ajax:
https://gist.github.com/Binternet/d371bce5a42aa204ad2cbe06c0d7d73bHope this is helpful for someone.
- The topic ‘New Filter: ‘wherego_get_referer’’ is closed to new replies.