{"id":3512894,"date":"2013-02-28T07:49:57","date_gmt":"2013-02-28T07:49:57","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/filtering-comment-form-pieces\/"},"modified":"2016-08-20T22:05:59","modified_gmt":"2016-08-20T22:05:59","slug":"filtering-comment-form-pieces","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/filtering-comment-form-pieces\/","title":{"rendered":"Filtering comment form pieces"},"content":{"rendered":"<p>Hi &#8211; 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&#8217;t get any of them to work. They just do&#8230; nothing. Here is the code in it&#8217;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):<\/p>\n<pre><code>function my_fields($fields) {\n    $fields[&#039;email&#039;] = &#039;&#039;;  \/\/removes email field\n    $fields[&#039;url&#039;] = &#039;&#039;;  \/\/removes website field\nreturn $fields;\n}\nadd_filter(&#039;comment_form_default_fields&#039;,&#039;my_fields&#039;);<\/code><\/pre>\n<p>I&#8217;m totally confused. Shouldn&#8217;t that work? Thanks for helping!<\/p>\n","protected":false},"template":"","class_list":["post-3512894","topic","type-topic","status-closed","hentry","topic-tag-comments","topic-tag-comment_form_default_fields"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/3512894","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/3512894\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=3512894"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}