lancer
asked 8 years ago

We have the plugin set to moderate all new Questions. However, when someone posts a question, the page reloads with the message at the top: Your question is waiting moderator.
But the form doesn’t go away. People can submit the same question over and over.

1 Answers
Allen
answered 8 years ago

Well, it’s just add notice to that page. You can change the redirect link after submit question.
in file inc/handle.php line : 482, above the line :

dwqa_add_notice( __( 'Your question is waiting moderator.', 'dwqa' ), 'success' );

you can add a redirect function :

exit( wp_safe_redirect( < can be any link you want here > ) );
lancer
replied 8 years ago

Thank you for the answer. Can this be done in a way so that plugin updates don’t override it?

Allen
replied 8 years ago

hi, so sorry for my late reply, but i think you should back it up … because at this time it can’t be prevented from update

Powered by DW Question & Answer Pro