asked 4 years ago

asked 4 years ago

I started using this plugin for my wordpress website and its working great. I want to be able to let anonymous people ask questions & answers without having to input their email address. Currently, putting down the email address is mandatory for someone to ask an anonymous question and i would like to remove that feature. Do i have to modify the .php files? If so, which one?

1 Answers
answered 4 years ago

If you want to remove the email section in the submit question form when anonymous ask a question, you can open the Handle.php file in the wp-content/plugins/dw-question-answer/inc folder then find the line 55.

if ( !is_user_logged_in() && apply_filters( 'dwqa_require_user_email_fields', true ) && ( empty( $_POST['user-email'] ) || !is_email( sanitize_email( $_POST['user-email'] ) ) ) ) {
   dwqa_add_notice( __( 'Missing email information', 'dwqa' ), 'error' );
Powered by DW Question & Answer Pro