I already know how to remove a metabox from my custom post type edit page. However I want to remove the comments metabox but still allow commenting for the post. Because I notice when I do remove it, it disables comments. Any function I can use?
Tell me more
×
WordPress Answers is a question and answer site for
WordPress developers and administrators. It's 100% free, no registration required.
|
Dont remove this via CSS, the _POST part is also active and WP save the date! Use the custom function for remove meta boxes; code by scratch
see more on a plugin to remove all UI-elemts and function for comments: https://github.com/bueltge/Remove-Comments-Absolutely |
|||
|
|
|
You can use the UI to remove it: Click on the "Screen Options" at the top right side of the edit screen
and uncheck the Discussion check box
or if you want to do it by code simply hide the container div by
|
|||||
|
|
There is problem in file
Your comments will be close after update. The solution is change callback of commentstatusdiv insted:
|
|||
|
|
|
Add this in
|
|||
|


