asked 3 years ago

You teach me the code that a question can work without entering email before.
in the same way, please teach me the code that an answer can work without entering email.
I leave it entirely to your discretion.

1 Answers
answered 3 years ago

In this case, you can add email default when anonymous submit a question, you can open the answer-submit-form.php file in the templates folder of the plugin then find the line 20 and replace with the following code:

<label for="_dwqa_anonymous_email"><?php _e( 'Your Email(You cannot edit me.)', 'dwqa' ) ?></label>
<?php $email = isset( $_POST['_dwqa_anonymous_email'] ) ? $_POST['_dwqa_anonymous_email'] : ''; ?>
<input type="email" class="dwqa-question-anonymous-email" name="_dwqa_anonymous_email" value="[email protected]" readonly>
Powered by DW Question & Answer Pro