append currency to URL

Thanks to @mozboz I figured out the answer to my question. I am posting it here in case it helps somebody else: WordPress (WPML plugin for multi-language and multi-currency) uses the cookie _wcml_dashboard_currency. I was able to set a cookie with the following code and that handled my problem with the currency selection changing after … Read more

How to construct a dynamic rewrite rule for child pages that passes more than one query var

First thing to check is make sure you visit permalinks page, or call the flush_rewrite_rules function once after you call add_rewrite_rules otherwise the rule will not get applied. So to restate your question, is it correct that you’re trying to achieve rewriting this: example.com/project-centers/kitchen/x/y/z To this: eample.com/index.php?pagename=kitchen&var1=x&var2=y&var3=z If that’s correct, your code looks like it … Read more

Why “?v=hash” is added to my URLs? [closed]

It was woocommerce, it has a setting “geolocalize users with cache support” which adds this parameter to every single url and link. I noticed that the hash appended was the same in every browser on my computer, so I realized it wasn’t a “session” hash, but an IP address hash.