I'm using wp_redirect to send the user back to an admin page. Everything works fine expect for the get variable that gets removed for some reason.

    $url = "admin.php?page=cv_data&saved";

Redirects fine to


half a second later the url loses the "saved" variable.


I was trying to use that "saved" get variable to trigger some CSS and give some feedback to the user that the form was saved.

I tried giving the variable a value like &saved=1. Still lose it.

1 Answer 1


Well.. I got it working.

Even though the URL loses the GET variable, its still set and working. A simple if(isset($_GET["saved"])) returns true and I can keep doing what i intended.

The fact that the variable appears and disappears in seconds from the URL confused me.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.