You could creatively use output caching to capture the adminbar and then discard it like so:
<?php
// this filter runs in menu-header.php L37 right before the admin menu is rendered
add_filter( 'parent_file', function( $parent_file ){
ob_start();
return $parent_file;
} );
// runs after the output
add_action( 'in_admin_header', function(){
ob_clean(); // discard output
echo '<div id="wpcontent">';
} );
Please do not actually consider using this in any production environment. It does not provide any security and it might break various things (for example the admin toolbar). I consider this an educational answer to the problem “how to use PHP output caching and WP filters to move remove stuff?”. You are probably better off just using CSS.
Related Posts:
- How to Add a Third Level Sub Menu to the WordPress Admin Menu
- How to send little data between admin pages of my plugin?
- What’s causing this error? “Warning: Invalid argument”
- Move plugin-settings to ‘Settings’-menu in the admin
- WordPress Admin Menu defining function is seperate file
- creating a plug in that would tap into save/update action of posts [closed]
- Add logo to admin menu in my plugin
- Getting 404 page not found error while trying to access add new plugin / themes
- Best collection of code for your 'functions.php' file [closed]
- How to use add_submenu_page() for editors?
- Admin AJAX doesn’t work in plugin admin page – Even though code is copied verbatim from WordPress Codex
- Add sub menu page in your plugin
- Editing a text file from plugin menu
- How do I add some javascript validation to the admin interface form’s onsubmit?
- remove all submenus from plugin
- Create WordPress posts from JSON array using plugin in admin
- Plugin getting Cannot modify header information errors
- Simply poll & Events Calendar plugins clashing
- Display Plugin Panels Outside of Admin Areas
- How to see which sites use my installed plugins (wordpress multisite)
- Why WP_Screeen doesn’t show all options with admin_body_class
- Plugin Admin Menu Boiler Plate
- How to use the CSS of the WordPress core in the development of my administration page?
- add_submenu_page returns null
- in source code but I can’t find it in files or plugins
- Updating WordPress plugin admin panel footer text
- WordPress permissions error with admin account
- Plugin – Admin menu page broken url
- getting notifications about updates only in the “core” page
- How do I add an options page at the bottom of the list?
- How to remove a CPT Menu from the Root Admin only
- Remove value from array within post meta ajax admin
- Show WordPress Plugin Menu(Admin) To Editor
- Problem after updating plugins
- Equivalent of admin.php for public pages
- Remove specific administrator’s capability
- problem with register_activation_hook in plugin
- Plugin permissions for Editor role
- How do you add a settings page to another menu?
- Error: Can´t access facebook comment plugin admin page
- How to add an admin alert for missing plugins
- Custom page in plugin visible in menu
- How to hide plugin options for editors via functions.php
- Ajax request sends url rather than data
- Gathering all Custom Post Type posts in to array/object the proper way
- How to add captcha to publish widget
- Adding a jQuery modal dialog to the admin area
- Redirect plugin after form submit or show errors
- How to create a plugin page that shows XML?
- Adding custom Field To The Posts Listing
- What is the most efficient way of adding additional functionaliy for admin only
- How to create admin setting for this small plugin
- Creating an admin button that when clicked shows a popup form
- WC Fix Attributes – ‘Add New’ Not Searchable/Delayed
- Admin Custom Plugin List Files in admin Table
- Hide all Admin Notices and move on a separate page
- Can I create a separate admin section for my plugin?
- add menu page not showing Icon
- How To Remove “All, Publish, Draft and Expired” in Events Dashboard
- Custom Icon assigned to menu items not working for multi-site networks
- Admin menu hilighting wrong item for CPT
- Disable plugin for administrator
- Echo custom admin field into a is_single()
- Creating Admin Submenu Page via Class Method
- Add_Meta_box to custom page (formidable edit post)
- Get content and send to 3rd party
- Wordress admin page is fetching error You do not have sufficient permissions to access this page.
- How to enable Admins to see Plugins
- Admin page and admin menu. Permissions plugin
- Plugin option for input box validation
- Defined user role to access plugin’s pages
- Add a checkbox in plugin options page and make it actually work
- Embedding code snippets in posts with indentation
- How to add submenu to WordPress plugin in the same Directory of main Plugin?
- Plugins not activated after update?
- Assigning a custom post type to a custom page
- How can I pass value to function in add_menu_page?
- Create a blank admin page from plugin
- Plugin menu replaced by another plugin?
- admin panel save option with ajax
- Custom Form only for admin
- how to call jQuery in admin as well as in homepage
- What would cause edit buttons for plugins to disappear?
- WordPress plugins not showing after switching servers
- Adding hero images to blog posts
- How to create plugin list groups?
- Frontpage Admin Bar Disappeared
- What is the recommended way to be notified of security updates to my plugins? [closed]
- Plugin link does not appear in my toolbar
- Why plugin’s icon for the menu not found?
- Need help with restricted page for users
- Allow direct access to files/folders within WordPress to replace wp-admin
- admin_enqueue_scripts using hook_suffix vs GET page
- Submitting form to admin-post.php WordPress
- Display Any Field fromAdmin Panel in Frontend via Shortcode?
- What plugin presents these extra columns in wp-admin -> plugins
- How can I hide Dashboard notifications for just one particular plugin?
- Remove custom menu pages for admin users
- Remove 3rd party plugin notices from within own plugin
- How is wp_admin_notice supposed to work?