Ray
asked 2 weeks ago

Changed line 468 in the Handle.php file to redirect to a different url but it doesn’t work. 
This worked on the free version but its not working on the pro.
Ray

1 Answers
DominicStaff
answered 2 weeks ago

To redirect users to a different page when user submit a question, please open the actions.php file in the folder path wp-content -> plugins -> dw-question-answer-pro -> inc -> Handle.php.
Find the line code around line 546:
exit( wp_safe_redirect( get_permalink( $new_question ) ) );
Then replace with the following code to redirect to home page:
exit( wp_safe_redirect( home_url() ) );
Notice: you can use similar to redirect user to any other page as you wish (in your case to the question listing page)
Eg: like this is my url : http://mysite/discussion-forum/
exit( wp_safe_redirect( home_url() .'discussion-forum/' ) );

Ray
replied 2 weeks ago

Thank you that worked with a slight modification. So appreciative of your responsiveness and help!

Powered by DW Question & Answer Pro