@Jeffrey’s answer is correct is you are the one registering the post types, simply remove the support argument for comments
.
But if you want to remove it from all custom post types (that may be registered by plugins too) you can do:
$cptslugs = get_post_types( array('public'=>false, '_builtin' => false) , 'names', 'and');
foreach ($cptslugs as $cpt) {
remove_meta_box( 'commentsdiv', $cpt, 'normal' );
}
Related Posts:
- Add a Meta Box for uploading a SECOND Featured Image?
- Remove the Yoast SEO Post Metabox [closed]
- Sample code for validating custom metabox?
- One metabox for multiple post types
- How to add a class to meta box
- Has anyone successfully integrated qtranslate with custom metaboxes?
- Add Meta box Befoure Post Title
- Tinymce/WordPress is removing all line-breaks?
- Editing Screen: Make Update or Publish Button Follow The Page
- Why can’t I hook into save_posts after admin_init?
- Meta Boxes in Front End Post Submission Form
- Remove a plugin meta box from the dashboard
- Custom meta box shown when template is chosen [duplicate]
- Modifying the main editor priority
- How to make a meta box field a requirement
- How to make multicheck for post/page meta box
- Adding uploaded images to editor from metabox instead of default popup uploader
- Choosing a default page tempate (Classic => Gutenberg)
- How to remove the RichText Meta Box
- Replace the Post Excerpt Meta Box with a Field in My Custom Meta Box
- Add character count to custom metabox
- Update caption for metabox gallery images
- How to show post format gallery metabox image caption in the post front end
- Display Single Attachment Image file size, uploaded date, resolution, file-name etc in Sidebar
- datetime_timestamp shows numbers only? need in date and time
- Remove a metabox registered by another plugin – Woocommerce [closed]
- Custom Metabox with Ajax in Edit Post – Stuck
- Possible to limit custom meta boxes depending on what page template is used?
- Post.php – Conditional statements for new post and edit post
- How to generate a featured image from a video embeded in a metabox
- Meta box io oembed returns list not array
- Add Slug Metabox to posts for contributors
- How to verify meta box is registered in Unit Testing?
- Add a custom field to top attribute in WooCommerce
- wp_editor in metabox not working
- Select box saves but doesn’t update value in admin
- save_post not working with attachments
- How to get meta box values – WP tuts tutorial
- retrieve meta key when checkbox is used
- Add Meta Box not showing on New Post – Custom meta box not showing
- Change Metabox Title
- add wp_editor to custom_meta_box
- Customize WordPress Media Upload and New Media Manager Menu in add post Metabox
- How to display a custom post type’s media library inline on meta box
- Modules with meta box implementations
- Remove meta box for specific page
- How To Add Custom Meta PDF Upload Box to WooCommerce Products (and post link on frontend)
- Using WYSIWYG In custom meta boxes
- Visual/Text tabs in wp editor Not Showing
- save_post action to include wp_insert_post_data filter, gathering meta field info & prevent infinite loop
- Show Meta Box On Specific Page Template
- Change the context of excerpt metabox for the ‘New Post’ page
- Adding meta box without add_meta_box – is this bad?
- How to have meta boxes save via REST in Gutenberg?
- Show preview of post changes on page
- Add Metabox to settings / options page
- saving data entered into a Metabox into an array? for use with for/each output.
- Undefined index error in custom post metabox
- WPAlchemy MediaAccess inserting media link in WP Editor instead of custom field in metabox [closed]
- Meta Box will not display
- How to get the meta box name and value
- My custom write panels won’t save data. What am I missing?
- meta box & callback function
- $_GET & $post_ID
- How can i use this meta box function in my template ? (WordPress)
- How to disable Author dropdown in Gutenberg’s Status and Visibility panel
- get_post_meta as a list for drop down search filter
- add_post_meta | update_post_meta | Via the frontend
- multi custom fields and taxonomy search
- Migrating from metaboxes to wp_editor()
- Front end post and upload file, image for users without plugin
- remove a single post_meta
- Dynamic number of fields in a meta box
- How to make a metabox that contains link categories?
- Echo 2 values from one key in Array with get_post_custom
- Getting metabox value within a shortcode?
- meta box pop up upload button wont work
- Add metabox to pages that use custom template in WordPress
- How to Edit & Update meta_box values from Front-End user Form
- Is this Edit Post Screen?
- Meta Box – Javascript Datatable
- Metabox on a custom page – How to include the appropriate default scripts and styles?
- custom metabox nonce verification fails
- Extensible add_meta_box with apply filters
- use post meta in add_meta_boxes action
- Generating image sizes when uploading through wp.media
- Add “Select” For Custom Post Type Metabox
- add_post_meta not saved
- Set post title to same value as a tow meta box
- add_post_meta Adds post meta but the value is blank
- Best practices for meta box placement?
- Echo order box (in pages)
- Tags meta box don’t show when creating a new post type
- Remove duplicated values from meta box values
- Setting Event to Expire Using Custom Metabox
- Drop down menu’s not saving using Custom Meta Boxs in WordPress
- Remove Title, Editor and Meta Box Support Based on Post Formats
- Custom select box meta field
- Saving an upload media meta box field
- My meta box don’t want to save value