Comments have an associated author to them.
In a section called “Private Comments” – Query for all comments belonging to the current post where wp_comments->comment_author_email equals the email of the current user.
Checkout the wp_comments table. It has 15 or so fields you can filter when displaying comments.
EDIT:
The code would look something like this:
$comment_array = get_approved_comments($post->ID);
$current_user = wp_get_current_user();
foreach($comment_array as $comment){
if ($comment->comment_author_email == $current_user->user_email) {
echo $comment->comment_content ;
}
}
You loop through the list of comments for the current post and filter by author email.
Related Posts:
- How do I create a custom post type for a training CMS in WordPress?
- custom comments form for custom post type
- How can I include active content in a custom post type?
- Where, When, & How to Properly Flush Rewrite Rules Within the Scope of a Plugin?
- Custom Post Type Plugin: Where Do I Put The Template?
- How to Add Custom Taxonomy To Woocommerce Plugin
- Why are the comments disabled by default on my custom_post_types?
- Creating a Custom Post Type as a Plugin? Why?
- Quick edit screen customization
- Mini-Site Strategy
- Display Authors Comments on Profile Page
- Render a different post/template from within the template_include action?
- Seperating custom post type comments from regular blog posts comments
- Recent comments on author page?
- Comment moderation on custom post types
- Custom Taxonomy and tax_query Issue?
- Automatically check “Allow comments” for custom post type [duplicate]
- How to register custom post types in a plugin?
- Actions that Run on Admin Edit Page Load After Posts Are Queried
- Custom role capabilities to administrator not taking effect (no plugin)
- How to append element after thumbnail
- handling csv data with a custom post type
- Custom Post Type | Fatal Error on register_post_type()
- Separate comment section for post type in dashboard
- Count all comments of a custom post type
- Custom Post Type rewrite
- Admin notice not displaying
- Detect where custom post type is declared
- Insert data on comment post
- Insert Multiple Post with Same Publish Button
- get_object_taxonomies() returns empty array for custom post type
- custom post type not showing in menu
- Adding a custom post type taxonomy template in plugin
- Plugin: register custom post types, child ready and performance best practices
- How to set up an entity (post-type?) with many dependent entities (more post-types?)
- Custom post type content using custom fields without template
- Add custom ID to CPT posts only create not update
- Add custom post type as submenu [closed]
- Getting meta in editor plugin, and event triggering issue
- Unable to get Custom Plugin Options data
- What is the best practice for displaying my plugin content in themes?
- How to use TinyMCE Editor for one of my custom post meta field?
- Create another comment system for CPT
- Deleting taxonomy terms and relationships on a custom post_type when a user is deleted
- Associating two custom post types
- comment_notification_text filter for custom post type
- When should I create custom post types?
- Custom post type’s extra fields – how to handle?
- Save Multiple Metabox values
- Main query not querying any posts in custom taxonomy template
- What’s an efficient way to change the post status of many posts at once?
- Show current custom taxonomy
- How to insert data into meta box from another plugin?
- How exclude or skip post type with get_next_post_link
- Send email messages after comment was submitted
- Create a select metabox that the user can pupolate?
- Types plugin custom post add_action hooks
- comments hooks on custom post type
- unapprove comments on custom post type
- Mandatory field in Custom post
- Not Able to Add New Class To CPT Attachment Image
- Why will comments not remain open on custom post types?
- Custom post type category link redirecting to 404 page
- Translate website without duplicate custom post
- How to store the third party script with HTML code in the wordpress custom input field?
- Orderby custom fields is not working
- How to upload an image to a custom post type
- How to stop the custom post type URL from the google search?
- Changing CPT permalink
- Get all posts by many custom post types
- Display custom posts, ordered by most commented, without duplicates
- Apply a custom Template to a Custom Post Type from within a plugin
- WP_List_Table Inside Metabox Not Working on Clicking Search Button
- Warning , Use of undefined constant PLUGIN_PATH?
- Admin metabox with custom post type dropdown option not update choosed input after saving
- Having issue on Loading Meta Data From CSV to CPT
- Correct way to register custom post type from external php file?
- custom data model – link and populate from admin backend
- Add an array as post content dynamically
- get comments for custom post type
- How save custom meta type posts multicheck grouped by taxonomy (with CMB2) [closed]
- Not Able to List CPT Based on Taxonomy Term
- How to reset HTML filter input fields on CPT list page?
- Adding second comments.php for reviews
- Simple renaming my custom post type set with a plugin doesn’t work?
- get_post_types doesn’t work in plugin
- Show Templates in Custom Post Type Editor
- Associate custom categories to different user IDs
- Render custom taxonomy query as single template
- How to avoid hardcoded text in a custom page template?
- Comments not enabled for custom post types
- How to use get_sidebar in plugin folder?
- How to internationalize the sub menu name “categories” in Custom post type?
- Custom post type: can’t enable comments by default
- How can I make a custom post type that loops pages in a new dashboard page, each single page is a new dashboard page (all within the back-end)?
- How to create an upload page (front side)
- WordPress Roles
- get_post_types() is returning null
- I want to show a list of posts under specified categories
- How to consume external API from WordPress post editor and display the response data in the custom field?