I\'m developing a plugin for wordpress, the parameter of the $ _GET is recorded in the database according to the preference of the User via the Wordpress Admin Panel. The follow
if($_GET[$url_before] != ""){ if($_GET[$url_before]=="nosupport"){ // note no "" here // my function goes here... } }
In your solution, the key was treated as a string, with no variables evaluated.