Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Specify meta boxes that should be hidden by default for new users.
<?php
add_filter( 'default_hidden_meta_boxes', 'custom_default_hidden_screen_options', 10, 2 );
function custom_default_hidden_screen_options( $hidden, $screen ) {
$hide_these = array(
'dashboard_primary',
'postcustom',
'trackbacksdiv',
);
return array_merge( $hidden, $hide_these );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.