Cause a reload of the page using JavaScript once you’ve handled the POST
//Redirect to same page to clear POST
echo '<script>window.location.replace(window.location.pathname + window.location.search);</script>';
return '';
This is the other way, but it won’t work correctly inside shortcodes etc
header('Location: ' . $_SERVER['REQUEST_URI']);
exit;
