Title: Filtering comment form pieces
Last modified: August 20, 2016

---

# Filtering comment form pieces

 *  [robahas](https://wordpress.org/support/users/robahas/)
 * (@robahas)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/filtering-comment-form-pieces/)
 * Hi – I need to add place holder text to the author, email and comments fields
   of the comments form. I see helpful instructions in various places but I can’t
   get any of them to work. They just do… nothing. Here is the code in it’s simplest
   form (if I could get this to work, then I would use replacement to add the placeholder,
   this is just an easy way to test):
 *     ```
       function my_fields($fields) {
           $fields['email'] = '';  //removes email field
           $fields['url'] = '';  //removes website field
       return $fields;
       }
       add_filter('comment_form_default_fields','my_fields');
       ```
   
 * I’m totally confused. Shouldn’t that work? Thanks for helping!

Viewing 1 replies (of 1 total)

 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/filtering-comment-form-pieces/#post-3512956)
 * Yes it should. In fact, it works for me. Do you have any plugins or a theme that
   may be hooking the same filter, negating your efforts somehow?

Viewing 1 replies (of 1 total)

 The topic ‘Filtering comment form pieces’ is closed to new replies.

## Tags

 * [Comments](https://wordpress.org/support/topic-tag/comments/)
 * [comment_form_default_fields](https://wordpress.org/support/topic-tag/comment_form_default_fields/)

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 1 reply
 * 2 participants
 * Last reply from: [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * Last activity: [13 years, 7 months ago](https://wordpress.org/support/topic/filtering-comment-form-pieces/#post-3512956)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
