woolfie123
asked 8 years ago

I would like to have Users anwers go into pending for Admin approval for publication
Its not clear how this is done

3 Answers
Allen
answered 8 years ago

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' );
woolfie123
answered 8 years ago

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

woolfie123
answered 8 years ago

This has not sent the answers to pending?
It performs exactly the same.
 

How long does the cold smoked garlic keep for?


 
Please advise ?
 

Allen
replied 7 years ago

below there , in line 90 change to
$answers[‘post_status’] = ‘pending’;

Powered by DW Question & Answer Pro