Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
296 views
in Q2A Core by
Hi everybody

Is there a way to know the number of question inside hidden content?
Q2A version: 1.8.6

1 Answer

0 votes
by
selected by
 
Best answer

The issue here is related to what is actually hidden and what is not hidden but not visible due to the parent post being hidden. The latter, really complicates stuff so I'll go for the former.

In order to get content that has been explicitly hidden by a user, you can run this SQL query:

SELECT COUNT(*) FROM `qa_posts`
WHERE `type` IN ('Q_HIDDEN', 'A_HIDDEN', 'C_HIDDEN');

If you want to get the results of Questions, Answers or Comments only, just remove them from the query.

by
Gracias, tenia la misma duda!
by
Thanks a lot

Welcome to the Q&A site for Question2Answer.

If you have a question about Q2A, please ask here, in English.

To report a bug, please create a new issue on Github or ask a question here with the bug tag.

If you just want to try Q2A, please use the demo site.

Categories

...