Skip to content

Instantly share code, notes, and snippets.

@andyknapp
Created June 20, 2013 02:08
Show Gist options
  • Save andyknapp/5819800 to your computer and use it in GitHub Desktop.
Save andyknapp/5819800 to your computer and use it in GitHub Desktop.
Remove meta boxes from WP write post screen
function ak_custom_meta_box_removal() {
remove_meta_box( 'postexcerpt', 'product', 'normal' );
remove_meta_box( 'authordiv', 'product', 'normal' );
remove_meta_box( 'revisionsdiv', 'product', 'normal' );
remove_meta_box( 'slugdiv', 'product', 'normal' );
remove_meta_box( 'mp-meta-download', 'product', 'normal');
}
add_action('admin_menu', 'ak_custom_meta_box_removal');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment