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 can I make an Ajax login form work with FORCE_SSL_ADMIN enabled?
- Add section (add_settings_section) to a custom page (add_submenu_page)
- Creating a WordPress admin page without a menu for a plugin
- Admin plugin, how can I output a different content-type?
- Plugin or mod for wordpress to make content publication SUPER easy
- How can I log a user out of WordPress before the page loads?
- Delete option doesn’t appear for plugins
- How do I only load a plugin js on it’s settings pages?
- How to enable Admins to see Plugins
- Adding an admin page – OOP approach not working
- Creating button next to “add media” that allows you to choose a single post
- Generate Advanced Custom Fields box in custom admin menu page
- Bad Request (Invalid Hostname) on working server, database problem
- How to develop a community feature in the dashboard for multiauthor site
- Detecting when a custom taxonomy has been changed and display alert?
- Sub menu with a URL parameter and access the page
- Filter or action hook to insert content on admin pages before tag
- How to edit/delete single row items in a table on my own menu page
- Admin Dashboard with Custom Tab for Client
- reorder plugin menu position
- Hide Theme options and Customize Admin menu
- Change wording of admin menu item?
- wordpress reusable content blocks
- Cannot access wp-admin after disabling all plugin
- Set of plugins to control the Admin UI
- Which plugin will let me decide what users have access to on their side bar in wp-admin?
- What would be the advantages/disadvantages of remote plugin installation?
- Editing admin pages in WordPress [closed]
- White page on custom plugin option submit
- Layout Plugin Admin Pages: Use BootStrap? [closed]
- Remove Duplicator plugin from admin menu if not an administrator
- Doubt using $wpbd->get_col for a single column
- Add a custom form on the post-new.php admin page
- Is this the right way to execute some PHP in my plugin after a button click on an options page?
- How can I force users to a particular subdomain to log in for MU (Multisite)?
- Display update notification messages like ‘What’s New’
- Admin accounts unable to see plugins from external IP
- WordPress wp-admin/network/plugin-install
- how to access all user dashboard on fronted page [closed]
- How to set add question capability for author role in wp pro quiz plugin
- Suggestions on Approach to New Plugin I’m Stuck On
- do_action() hook into load-(page)
- How to change the name of the “edit my profile” link in the WordPress admin backend
- Add menu page issues (permissions & position)
- How to use add_submenu_page() for editors?
- Editing a text file from plugin menu
- Simply poll & Events Calendar plugins clashing
- Display Plugin Panels Outside of Admin Areas
- How to see which sites use my installed plugins (wordpress multisite)
- add_submenu_page returns null
- How do I add an options page at the bottom of the list?
- How to remove a CPT Menu from the Root Admin only
- Show WordPress Plugin Menu(Admin) To Editor
- Equivalent of admin.php for public pages
- Remove specific administrator’s capability
- problem with register_activation_hook in plugin
- Error: Can´t access facebook comment plugin admin page
- Ajax request sends url rather than data
- Gathering all Custom Post Type posts in to array/object the proper way
- Adding a jQuery modal dialog to the admin area
- 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
- 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
- Echo custom admin field into a is_single()
- Creating Admin Submenu Page via Class Method
- Add_Meta_box to custom page (formidable edit post)
- How to enable Admins to see Plugins
- 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?
- How can I pass value to function in add_menu_page?
- Custom Form only for admin
- how to call jQuery in admin as well as in homepage
- 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
- Allow direct access to files/folders within WordPress to replace wp-admin
- What plugin presents these extra columns in wp-admin -> plugins
- How is wp_admin_notice supposed to work?