Private Comments for CPT
Enables internal comments for a given Custom Post Type when Editing Draft or Pending posts.
by Rodolfo Buaiz, Twinpictures · github.com/brasofilo/private-comments-in-cpt · website
★ 5stars
3forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/brasofilo/private-comments-in-cpt/archive/refs/heads/master.zipReadme

Private Comments for CPT
Enables internal comments for a given Custom Post Type when Editing Draft or Pending posts. The comments are only visible in the backend. And marked as internal in the dashboard.
- Contributors: brasofilo, baden03
- Stable tag: 2023.01.25.01
- Tested up to: 6.1.1
- License: GPLv3 or later
- License URI: https://www.gnu.org/licenses/gpl-3.0.html
Description
Based on this WordPress Question.
- Comments do not appear in frontend
- Comments do not appear when editing a Published post
- Controlled via Karma and Comment Meta
Screenshots
All comments screen - Custom column - Custom background

Private comments screen - No custom column - No custom background

Editing a Draft CPT

Requirements
- WordPress version 3.4 and later (not tested with previous versions)
Installation
- Define the custom post types using the
internal_comments_cptfilter:add_filter( 'internal_comments_cpt', 'my_ic_cpts'); function my_ic_cpts( $cpt_arr ){ return array('some_cpt_slug', 'some_other_cpt_slug'); } - The
helper-cpt.phpcan be used to create a test post type
Other Notes
References
- http://core.trac.wordpress.org/browser/tags/3.4.2/wp-admin/includes/ajax-actions.php#L719
- http://wordpress.org/support/topic/using-comment_type-field-for-my-own-purposes
- http://wordpress.stackexchange.com/q/39784/12615
- http://wordpress.stackexchange.com/q/56652/12615
- http://wordpress.stackexchange.com/q/61072/12615
- http://wordpress.stackexchange.com/q/63422/12615
- http://wordpress.stackexchange.com/q/64973/12615
- http://wordpress.stackexchange.com/q/72210/12615
- http://wordpress.stackexchange.com/q/74018/12615
- http://stackoverflow.com/q/4054943/1287812