Disable Admin Bar Render on Plugin Page

In modern WordPress toolbar is considered mandatory part of admin. That is WordPress is explicitly opinionated about not letting you to disable it. While you still can kind of hack it out, it’s unnecessary struggle.

If you need a blank page there is no reason to struggle with blanking admin interface for it. You could simply use wp-admin/admin-post.php to handle your form. Ajax endpoint would work just as well, or maybe even custom “pretty” URL endpoint.

Leave a Comment