AL-Kateb
asked 1 year ago

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

2 Answers
DominicStaff
answered 1 year ago

Hi,
At the moment, the plugin does not support to list all participants to a specific question.

AL-Kateb
answered 1 year ago

@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 );
Dominic Staff
replied 1 year ago

I sent and notified to our technical team about your issue. We will check and discuss about it.

Powered by DW Question & Answer Pro