[wp-trac] [WordPress Trac] #55891: Please add an action for additions within the "comment-metadata" div

WordPress Trac noreply at wordpress.org
Wed Jun 1 09:06:43 UTC 2022


#55891: Please add an action for additions within the "comment-metadata" div
--------------------------+-----------------------------
 Reporter:  jwz           |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Comments      |    Version:  6.0
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 I would like to add additional data to the ".comment-metadata" div, and
 there is no way to do that.

 If I want to display the extra info for admins only, I can use the
 'comment_text' filter, but that's a nasty hack, and obviously only shows
 up for users who are able to edit comments, so it doesn't help the general
 case.

 I suggest adding an action just before or just after the call to
 edit_comment_link in class-walker-comment.php around line 460 (and also
 360?)

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/55891>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list