When form submission is done using admin_post in front end, then in action page header shows WordPress default header bar. How to avoid this header bar

1 Answer 1


As per my understanding, you want to remove WP admin bar so here you can add add_filter('show_admin_bar', '__return_false); in functions.php file.

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.