There’s a default_hidden_meta_boxes filter which allows you to do that. It gets called like so:
$hidden = apply_filters('default_hidden_meta_boxes', $hidden, $screen);
Related Posts:
- Setting admin edit panels & metaboxes positions and visibility for ALL users and admins
- Remove default WordPress styling from metaboxes on edit post pages?
- Create a Meta Box in the Admin User Screen?
- How to remove “publish metabox” from each post type
- Make the Status, Visibility, or Date fields opened by default in the Publish box
- How to verify nonces in bulk?
- add instructions to upload pages and / or forms
- Get content of publish box
- Adding additional text fields and image upload to a Page?
- Remove “minor-publishing” div from Publish admin metabox
- Add a Separator to the Admin Menu?
- Adding a custom admin page
- Allowing admin-ajax.php to receive “application/json” instead of “x-www-form-urlencoded”
- Custom admin email for new user registration
- Make A WordPress Page Accessible To Admins Only, Redirect Other User Roles
- localhost/wp-admin on my local redirects to production site’s /wp-admin
- How do I set up a webhook?
- Hide allow trackbacks/pingbacks
- How to retain HTML5 Attributes on Markup
- Gallery Settings Change available Columns
- Hide Admin menus per role in WordPress
- wordpress upload http error?
- Dynamically Set WordPress Post Title To The Category Name
- How to find out if an wp-admin action edited a file?
- Text snippets shared across posts
- Disable collapse of admin meta boxes
- Add Admin User via SQL
- Add number new posts (post_status = pending) to administration menu [duplicate]
- How to remove Gravatar from Username column
- Page only shows when user is logged in (even with visibility set to public)
- I keep getting logged out in Firefox
- get_template_part in admin
- Why Jetpack is missing the “Feedbacks” menu item? [closed]
- Getting the different post statuses + count like in edit.php, in a custom submenu page
- What is the optimal way to filter out subpages from admin?
- Send email to Admin when user/member updates specific user/member data
- Help with shortcode in admin-ajax [closed]
- Remove Metabox from Menus screen
- Protect custom php file with login
- Remove the whole menu in the admin
- disable admin-bar search field for specific roles
- Limit Words in Category / Term Description – Admin Panel
- Change admin logout URL
- Link to post author but exclude administrator (on single.php)
- Don’t attribute content to admin users
- wp-admin post.php JavaScript Links Not Working
- Remove duplicate product link from WooCommerce Page Row Actions
- How to set default editor tab
- Admin Taxonomy Terms – Orderby Term Field
- How do I add an admin notice within javascript in the admin interface for posts?
- Admin toolbar shows up when not logged in
- Attachment display settings only allows “full-size”
- Button inside Custom Meta Box triggering the Update Button
- Admin option sidebar count
- 500 internal server error on wp-admin only
- Admin Top Bar Not Showing On Front End
- WordPress administration Over SSL – To Force SSL Logins and SSL Admin Access
- Only Admin can Edit, Delete or Update
- WordPress Home/Front Page Display at top of Admin Pages List
- Bind custom role to admin page
- /wp-admin/install.php redirecting to 123-reg
- Home page is redirecting to another page – no obvious reason
- Admin Panel Development [closed]
- Backend Checkboxes working – but not visual?
- Why does Thickbox jQuery load on my site?
- Redirect admin 403 “Cheatin uh?” admin pages
- iframe with Youtube video appears for logged-in users, but not for incognito users
- Admin mode breaks with subdomains in latest WP
- How do I create a post_id column, for admin posts list?
- Custom Jquery in admin breaks media-upload script
- How should I change the username of or delete the admin user?
- Prevent Registration Where Role is None?
- Extending the user profile [closed]
- Show private pages in public when you logged in as admin?
- Any known plugins for master admin login to edit all on front end?
- Metaboxes inside Tab
- How to exclude some post from admin edit screen
- How to show WordPress admin dashboard forms on front-end?
- Allow custom REST route to return before doing long operation
- WordPress – add help text under category list(right side) in post edit page
- Cannot access wp-admin after installing SSL – user capabilities not being set
- Show only content in page after action click in WordPress admin
- WordPress4.1.15 Dashboard links not working
- Admins loggin in to our wordpress site default to the admin page
- Display Graphs in Admin Pages
- ‘Conflict’ with action deleted_post and is_admin()
- Downloading file from wp-admin folder
- Dropdown list of available posts for post editing
- Unsure how to add simple checkboxes that write to a small table to admin
- Custom styles and scripts for specific admin screen
- Add Sort Link in Custom Post Type List
- TinyMCE buttons broken
- local WAMP admin user has lost privileges
- Is it possible to get rid of admin new updates notifications?
- WordPress 4.5 Inline Link Toolbar not working on custom wp_editor instance
- Cant enter admin page with SSL
- 2FA for admin login only, is it doable?
- Add a user to edit the layout of a site
- CSS Styles specific to Admin Sidebar not loading
- Display notice in block editor after wp_insert_post_data hook