{"id":3137102,"date":"2012-10-22T22:35:13","date_gmt":"2012-10-22T22:35:13","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/auto-approve-user-comments-on-submit\/"},"modified":"2016-08-20T16:53:03","modified_gmt":"2016-08-20T16:53:03","slug":"auto-approve-user-comments-on-submit","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/auto-approve-user-comments-on-submit\/","title":{"rendered":"auto approve user comments on submit"},"content":{"rendered":"<p>I&#8217;m trying to allow automatic approval of comments by users without admin  approval. I have unchecked the options<\/p>\n<blockquote>\n<p>Before a comment appear:<br \/>\nAn administrator must always approve the comment<br \/>\nComment author must have a previously approved comments<\/p>\n<\/blockquote>\n<p>I even did<\/p>\n<pre><code>add_filter( &#039;pre_comment_approved&#039;, &#039;wpse47172_approve_logged_in_users&#039; );\n\nfunction wpse47172_approve_logged_in_users( $approved )\n{\n    return 1;\n}\nadd_action(&#039;wp_enqueue_scripts&#039;, &#039;my_scripts_method&#039;);<\/code><\/pre>\n<p>but I still get<\/p>\n<blockquote><p>&#8220;Your comment is awaiting moderation.&#8221;<\/p>\n<\/blockquote>\n<p>Any suggestions?<\/p>\n","protected":false},"template":"","class_list":["post-3137102","topic","type-topic","status-closed","hentry","topic-tag-approve","topic-tag-comments","topic-tag-moderation"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/3137102","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\/3137102\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=3137102"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}