• Is there a possibility to hide the Email field and not use it when people ask a question – without email validation for anonymous user?
    I wanted change template-functions.php (I found information about this in other post on other site) Unfortunately I don’t have this file in my version DWQ&A 1.4.5

    Please help
    This is very important

    Best regards

Viewing 1 replies (of 1 total)
  • Plugin Author DesignWall

    (@designwall)

    Hi,
    Thank you for contacting us and sorry for our late reply.
    To solve this problem, you should follow these two steps.
    – 1st:
    copy file question-submit-form.php
    from wp-content/plugins/dw-question-answer/template/ to folder wp-content/themes/theme-folder/dwqa-templates/
    Then delete email field in that file
    – 2nd:
    go to the file wp-content/plugins/dw-question-answer/inc/Handle.php
    and remove those code lines from 299 to 302 that is the same as follow:

    if ( empty( $_POST[‘_dwqa_anonymous_email’] ) || !is_email( sanitize_email( $_POST[‘_dwqa_anonymous_email’] ) ) ) {
    dwqa_add_notice( __( ‘Missing email information’, ‘dwqa’ ), ‘error’ );
    return false;
    }

    Feel free to ask if you have any more questions.

Viewing 1 replies (of 1 total)

The topic ‘Anonymous without entering email address’ is closed to new replies.