Hide email and website fields for comments?
-
I’ve found a question on this site with the same headline, but that evolved to an plug-in.
So I’m asking the same thing.
What do I need to do, to let visitor leave a comment by only providing a name and the comment (eg. Remove the email & website questions)?I know that by adding this code:
add_filter('comment_form_default_fields', 'unset_url_field'); function unset_url_field($fields){ if(isset($fields['url'])) unset($fields['url']); return $fields; }
to functions.php will eliminate the url question, but how do I remove the email question AND keep the name question?
}
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Hide email and website fields for comments?’ is closed to new replies.