Customized Comment Form Issues

You can unset this field like that : function wpse_109744_comment_form_fields($fields) { if(isset($fields[‘url’])) unset($fields[‘url’]); } $fields [’email’] = ‘your markup’; $fields [‘author’] = ‘your markup’; $return $fields; add_filter(‘comment_form_default_fields’, ‘wpse_109744_comment_form_fields’) EDIT :

Insert comment and still use moderation

Just to close this out, the answer is very easy in that, yes it is possible and here’s the function that does the check to see if the comment passes the moderation verification or not. Then you can add a conditional and either add the comment or not based on that. check_comment(); Function reference: http://codex.wordpress.org/Function_Reference/check_comment

WordPress Comments jQuery Doesn’t submit

Original Poster’s answer in comments also worked for me, will share it here so this can have a solution. Replace: $(‘form’).submit(); With: $(‘form’).unbind(‘submit’); $(‘#submit’).click(); I used this to submit comments with JQuery with the ENTER key rather than clicking the button: jQuery(document).ready(function($) { $(‘#comment’).keydown(function(event) { if (event.keyCode == 13) {//capture ENTER Key $(‘form’).unbind(‘submit’); $(‘#submit’).click(); return … Read more

Adding restrictions to open comments

All you need is to simply check if the entered name or email matched any admin accounts before the comment is saved. function restrict_admin_names() { if ( !is_user_logged_in() ) { $name = $_POST[‘author’]; // Get Submitted Name $email = $_POST[’email’]; // Get Submitted Email $admins = get_super_admins(); // Get an array of admin login $adminemail[] … Read more

Comments not enabled for custom post types

WordPress, by default don’t enable comments on custom post types, and once you have added support for comments, you still get the following message: Comments are closed You have to basically manually visit each custom post and enable comments in the post editor screen. There are however a workaround to enable comments by default in … Read more