wp_redirect() headers already sent after form submit

Was having a bit of a struggle today to properly redirect to the Plugins page upon the auto-deactivation of a plugin after submitting the action form.

The solution is actually frightening simple… just add &noheader=true to the action parameter of your form ;)

<form method=”post” action=”tools.php?page=wploginPatcher&noheader=true”>

Leave a Reply