How to validate url query var?
-
I set custom query)var handler according to https://developer.www.ads-software.com/reference/hooks/query_vars/
It works fine. When I add query unto site URL it is available in query_vars.
However, I need to have validation of allowed values for custom query var, and if proper value is not specified i want to return HTTP 404 to user visitor.
I cannot find how to intercept setting query_var, to check and disallow invalid values.
Is that possible?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How to validate url query var?’ is closed to new replies.