Sometimes, rather than hiding a meta box via screen options altogether, I want the box to be closed until the user opens it. WordPress has a filter that lets you add box IDs to the list of things that should be closed.
The filter names are different for each post type. If you want to close a box on all post types, you’ll need to loop through them:
https://gist.github.com/sillybean/2913931cd7e39040a7ced928fad50ba2
Leave a Reply