Prem Tiwari - - WordPress Snippets
If you are looking to remove the comment metabox from your WordPress admin, then keep your close attention in this tutorial as I am going to share how to remove comment metabox in WordPress.
Use the below code inside your theme’s functions.php files.
1 2 3 4 5 6 7 8 | /** * Remove comment metabox from edit post screen. */ function remove_comment_metabox() { remove_meta_box( 'commentsdiv' , 'post' , 'normal' ); } add_action( 'admin_menu' , 'remove_comment_metabox' ); |
Prem Tiwari is the founder of FreeWebMentor.com and also a professional developer who has vast experience in PHP and open source technologies. Apart from this, he is a blogger by hobby and also he has been a regular speaker of WordPress sessions in various IT Companies. View all posts by Prem Tiwari