Hello, I’m trying to extend the functionality of the plugin, as I have an in-site notification mechanism, so I want to send a notification to all users participating in the answer once a new answer has been submitted, so how do I retrieve a list of all the users who submitted answers to a specific question
At the moment, the plugin does not support to list all participants to a specific question.
@Dominic Or you could do this:
Start your code here $args = array( 'post_type' => 'dwqa-answer', 'post_status' => 'publish', 'posts_per_page' => -1, 'post_parent' => $question_id, 'update_post_term_cache' => false, 'update_post_meta_cache' => false, 'no_found_rows' => true ); $answers = get_posts( $args );
Please login or Register to submit your answer