Adding a filter to comments_template

Any comments_template filter should return an absolute filepath to the comments template – use comment_form_defaults and set the class_form argument: add_filter( ‘comment_form_defaults’, function ( $args ) { $args[‘class_form’] = ‘my form classes’; return $args; });

Ajax submit comments

you might find these links handy if you’re going to code it yourself http://byronyasgur.wordpress.com/2011/06/27/frontend-forward-facing-ajax-in-wordpress/ http://www.garyc40.com/2010/03/5-tips-for-using-ajax-in-wordpress/ I am fairly sure your URL is wrong url: “../wp-comments-post.php” – ajax in wordpress has to be sent (quite strangely) to/through admin-ajax.php (even if it’s not on the admin side). If you read the first link it is explained in … Read more

Highlight comments of all the site authors

There’s a filter called comment_class for that : apply_filters( ‘comment_class’, $classes, $class, $comment->comment_ID, $comment, $post_id ); Source Just use the argument comment which is an object and you’ll get $comment->user_id which could be useful to get user role and add your classes. EDIT: add_filter( ‘comment_class’, ‘wpse_253517_comment_class’, 10, 5 ); function wpse_253517_comment_class( $classes, $class, $comment_ID, $comment, … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)