Notifications
Clear all

How to filter "Comment_Type" in Comment Author Info

2 Posts
2 Users
0 Likes
685 Views
Posts: 17
Customer
Topic starter
(@om-swami-meditations)
Member
Joined: 3 years ago

Dear Support - I am using Comment Author Info plugin and showing "Activity" tab with all the comments made by a user. We are also using CM Answers Pro plugin ( https://www.cminds.com/cm-answer-store-page-content/) on our website for a confidential Q&A service for our members.

CM Answers Pro leverages Wordpress Comments for supporting their Q&A discussions. In our case, those discussions are confidential that only the member who is asking the question & the expert who is answering the question can see. Rest of the members cannot see the same. CM Answers Pro saves comments in Wordpress Comments table with comment_type as "cma_answer" and "cma_comment". 

When we are showing 'Activity' Tab for our members, those confidential answerss & comments are also showing in the Activity Tab. We want to filter those out. Kindly suggest how these can be filtered out, we have capability to use appropriate hooks. We did try using hooks provided by standard Wordpress class - https://developer.wordpress.org/reference/classes/wp_comment_query/ but those are not working with wp_discuz.

So I am not sure what is the best way to filter these custom comments out. Kindly advise.

Regards

-Pankaj 

1 Reply
Astghik
Posts: 5912
Admin
(@astgh)
Illustrious Member
Joined: 6 years ago

Hi @om-swami-meditations,

We use the WordPress native get_comments() function. You can configure this using the hooks of the function.

Reply
Share:
Scroll to top