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 |
/** * Remove comment metabox from edit post screen. */ function remove_comment_metabox() { remove_meta_box( 'commentsdiv' , 'post' , 'normal' ); } add_action( 'admin_menu' , 'remove_comment_metabox' ); |
If you like FreeWebMentor and you would like to contribute, you can write an article and mail your article to [email protected] Your article will appear on the FreeWebMentor main page and help other developers.