Edit Comments Fields

I need to edit the comments fields.

1 – The metadata should be only date; 2 – The comment itself should be trimmed; 3 – the word ‘says’ next to the name should be gone;

I believe I can manage the logics, however I do not know how to get these fields, apply the logic, and return them.

enter image description here

<article id="div-comment-5" class="comment-body">                 <footer class="comment-meta">                     <div class="comment-author vcard">                         <img alt="" src="http://1.gravatar.com/avatar/710dade4711ee07ca27e7db85255b701?s=50&amp;d=mm&amp;r=g" srcset="http://1.gravatar.com/avatar/710dade4711ee07ca27e7db85255b701?s=100&amp;d=mm&amp;r=g 2x" class="avatar avatar-50 photo" height="50" width="50" loading="lazy">                        <b class="fn"><a href="http://mundo.local" rel="external nofollow ugc" class="url">Stefano Monteiro</a></b> <span class="says">says:</span>                 </div><!-- .comment-author -->                      <div class="comment-metadata">                         <a href="http://mundo.local/videos/music-classic-canada-37/#comment-5"><time datetime="2021-01-21T17:59:16+00:00">January 21, 2021 at 5:59 pm</time></a> <span class="edit-link"><a class="comment-edit-link" href="http://mundo.local/wp-admin/comment.php?action=editcomment&amp;c=5">Edit</a></span>                 </div><!-- .comment-metadata -->                                      </footer><!-- .comment-meta -->                  <div class="comment-content">                     <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod  tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. </p> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>                 </div><!-- .comment-content -->                  <div class="reply"><a rel="nofollow" class="comment-reply-link" href="http://mundo.local/videos/music-classic-canada-37/?replytocom=5#respond" data-commentid="5" data-postid="830" data-belowelement="div-comment-5" data-respondelement="respond" data-replyto="Reply to Stefano Monteiro" aria-label="Reply to Stefano Monteiro">Reply</a></div>   </article>  

Is there WordPress plugin that allow to create alerts in comments and display them in specified page? [closed]

I’m looking for a plugin (free or paid) that allows to add specified field to comment – lets’s say alert field. When user with specified role eg. contributor will select this field new comment will be create with alert.

When an alert is created in a custom post type it will trigger the alert icon – the alert icon will link to the alerts page (alerts will send to all controbutors roles). This page will show all the alerts and comment threads. Here you will be able to view the different alerts, edit, comment, and disable alerts.

Any ideas?

Thanks in advanced!

Comments on “Which combinatorial problem is similar to this problem?”

Regarding the post Which combinatorial problem is similar to this problem?, it is quite hard to believe that, in the absence of information on the cost function, there is no algorithm better than exhaustive search to tackle this apparently easy-to-understand problem. I surfed the Internet and found something called the Weighted Constraint Satisfaction Problem, and I wonder whether this can be of any use in this case.

Any advise would be much appreciated.

WordPress Custom Avatar in comments

I have built my own frontend user avatar upload script. Now the avatars show fine in the user section in admin and in the top panel. However I can’t seem to get them showing in the comments and author sections of the site.

I use the following get_avatar code

add_filter ('get_avatar', function($  avatar_html, $  id_or_email, $  size, $  default, $  alt) { $  avatar = get_user_meta($  id_or_email,'avatar',true); if( $  avatar ) {     return '<img src="'.$  avatar.'" width="96" height="96" alt="Avatar" class="img-fluid rounded-circle" id="wad_profile_avatar" />'; } else {     return $  avatar_html; } 

}, 10, 5);

Any ideas how I can get it to show in comments also?