I tried to use a form with the following markup using the action admin-post.php
<form method='post' action='admin-post.php'>
I can the action hook suggested by Wordpress to the $_POST parameters and it works fine, but after execution I got a blank page. Is that the normal behaviour? Of course I could set a custom redirect with the referer.
A Workaround is to use action="" and and getting the request in my normal plugin code.
Aucun commentaire:
Enregistrer un commentaire