WP Manifestindependent plugin directory
manifest / content / private-comments-in-cpt

Private Comments for CPT

Enables internal comments for a given Custom Post Type when Editing Draft or Pending posts.

★ 5stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/brasofilo/private-comments-in-cpt/archive/refs/heads/master.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

MTT logo

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.

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

All Comments

Private comments screen - No custom column - No custom background

Private Comments

Editing a Draft CPT

Editing CPT

Requirements

  • WordPress version 3.4 and later (not tested with previous versions)

Installation

  • Define the custom post types using the internal_comments_cpt filter:
    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.php can be used to create a test post type

Other Notes

References

Admin style of screenshots: https://github.com/toscho/T5-Clean-Admin