Hello, When a user sends his question, no success message appears, however if the user makes a mistake, such as for example he forgets to put his email, an error message is displayed. I would like a message to appear when the user successfully submits their question. How can I do it?
You can open the wp-content/plugins/dw-question-answer-pro/inc/Handle.php file and find the line 559.
Replace the following code:
exit( wp_safe_redirect( get_permalink( $new_question ) ) );
With the new code:
dwqa_add_notice( __( 'Your question is Submitted.', 'dwqa' ), 'success' );
We will discuss about this option in the next version.
Hello! Thanks for your help, I’m trying that but it doesn’t work, I tried in differents browsers and deleting cache, but the succes message doesn’t appear.
I also tried to “change” the text of an error message just to confirm my changes is being updated, and this error message i modified works, so my changes are being updated but the code you give doesn’t work in my site.
You can see the code here, the changes are in the line 547
¿I’m doing something wrong?
Thank you for your help!!!
Please login or Register to submit your answer