Why does a header location on admin_head remove the query var I’m setting in the location?
If you want to perform any redirects, you have to send your header before site sends any output. admin_head is an action that allows you to print your custom code inside <head> tag of admin sites. But if it’s inside of <head>, then some output is already sent to the browser, so you can’t perform … Read more