I would like to have Users anwers go into pending for Admin approval for publication
Its not clear how this is done
3 Answers
Hi, so sorry but at this time, you can only change it in the code, you can open file :
dw-question-answer/inc/handle.php then go to line 89 and change the status to pending :
$answers['post_status'] = isset( $_POST['save-draft'] )
? 'draft'
: ( isset( $_POST['dwqa-status'] ) && $_POST['dwqa-status'] ? sanitize_text_field( $_POST['dwqa-status'] ) : 'pending' );
Have now changed the code as suggested and we will test it and report back.
This feature should be a standard:
“Admin To Approve all Answers” – given the tendency of Users to hi jack content.
with thanks
This has not sent the answers to pending?
It performs exactly the same.
Please advise ?
below there , in line 90 change to
$answers[‘post_status’] = ‘pending’;
Please login or Register to submit your answer