Changing position of cancel_comment_reply_link and other elements of comment form

I think your best bet is to take a look at Otto’s post all about the comment form and functions, here: http://ottopress.com/2010/wordpress-3-0-theme-tip-the-comment-form/ If you want to cut to the chase, you can add this function to your functions.php: function my_fields($fields) { $fields[‘new’] = ‘<p>Some new input field here</p>’; return $fields; } add_filter(‘comment_form_default_fields’,’my_fields’); Then set new … Read more

How to add consent checkbox in comment section

The ‘consent’ checkbox is already part of WP Core. See Settings, Discussion, for the “Show comments cookies opt-in checkbox”. Enable that, and your comments area will have a GDPR-type checkbox there. There are also other Privacy/GDPR related options in the latest WP. Look under Settings, Privacy. Also look under the Tools menu for the Export/Erase … Read more

WP comments form (custom) is displaying an extra comment field

It seems that WordPress handles the comment field separately than the other fields. If you look at comment_form() in wp-includes/comment-template.php, you can see this. It’s possible to set $defaults[‘comment_field’] to false in alpha_comments_defaults() then add the comment field markup to $fields[‘comment_field’] in alpha_comments_fields() in the desired order, but this could cause trouble with plugins. I’ve … Read more

Remove “at” string from wordpress comment date

Most likely, the ‘at’ is coming from the value of $comment->comment_date. If that is the case, and since we have to do with string, you could pass it from str_replace first, in order to remove the ‘ at’, like: function my_change_comment_date_format( $date, $date_format, $comment ) { return date( ‘d M Y’, strtotime( str_replace(” at”, “”, … Read more

How to save new comment as custom comment type?

In addition. You already have code which can kind of do what you need. add_filter( ‘preprocess_comment’, ‘verify_comment_meta_data’ ); function verify_comment_meta_data( $commentdata ) { if ( ! isset( $_POST[‘wp_review_comment_rating’] ) ) wp_die( __( ‘A rating is required. Hit the BACK button and resubmit your review with a rating.’ ) ); // this is filter and $commentdata … Read more

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