Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter dwell

    (@dwell)

    and e-mail too

    Plugin Author DesignWall

    (@designwall)

    Hi dwell,

    You can go to wp-content/plugins/dw-question-answer/inc/Handle.php and remove this code below from line 298 to 308

    if ( !is_user_logged_in() ) {
    	if ( empty( $_POST['_dwqa_anonymous_email'] ) || !is_email( sanitize_email( $_POST['_dwqa_anonymous_email'] ) ) ) {
    		dwqa_add_notice( __( 'Missing email information', 'dwqa' ), 'error' );
    		return false;
    	}
    
    	if ( empty( $_POST['_dwqa_anonymous_name'] ) ) {
    		dwqa_add_notice( __( 'Missing name information', 'dwqa' ), 'error' );
    		return false;
    	}
    }
    
    Thread Starter dwell

    (@dwell)

    but this hardcoding will be removed with first update…

    Plugin Author DesignWall

    (@designwall)

    Hi dwell,

    The next version of DW Q&A and will add an option to allow you disable this feature on your site.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to make Name field optional?’ is closed to new replies.