Remove Post Edit meta boxes


/ Published in: PHP
Save to your folder(s)

Wordpress


Copy this code and paste it in your HTML
  1. add_action( 'admin_menu', 'remove_meta_boxes' );
  2. function remove_meta_boxes() {
  3. remove_meta_box( 'commentsdiv', 'post', 'normal' ); // Comments meta box
  4. remove_meta_box( 'revisionsdiv', 'post', 'normal' ); // Revisions meta box
  5. remove_meta_box( 'authordiv', 'post', 'normal' ); // Author meta box
  6. remove_meta_box( 'slugdiv', 'post', 'normal' ); // Slug meta box
  7. remove_meta_box( 'postexcerpt', 'post', 'normal' ); // Excerpt meta box
  8. remove_meta_box( 'formatdiv', 'post', 'normal' ); // post format meta box
  9. remove_meta_box( 'trackbacksdiv', 'post', 'normal' ); // Trackbacks meta box
  10. remove_meta_box( 'postcustom', 'post', 'normal' ); // Custom fields meta box
  11. remove_meta_box( 'pageparentdiv', 'post', 'side' ); // Page attributes meta box
  12.  
  13. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.