pass variable via url param on ever page request
-
I’ve googled and googled and I’m googled out on this one.
I want to be able to allow a user to switch off/on a background image and this state to be remembered so that what ever link they click the parameter will be passed. I can then check it in the header and do what ever needs doing.
I know a fair bit of php but struggling with WP since I cannot encode every link with the variable so it needs to be hooked or filtered in some way I cannot work out.
I don’t want to use cookies and I don’t want to use a bloated theme switcher – I just need to toggle a background image.
If theres an easier way to do this I’m all ears.
Anyone got any ideas?
The topic ‘pass variable via url param on ever page request’ is closed to new replies.