[wp-trac] [WordPress Trac] #48480: Add comment_form_opening_tag and comment_form_closing_tag filters

WordPress Trac noreply at wordpress.org
Fri Nov 1 12:12:18 UTC 2019


#48480: Add comment_form_opening_tag and comment_form_closing_tag filters
--------------------------+-----------------------------
 Reporter:  powerbuoy     |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 I'd like to be able to customize the `div#respond.comment-respond` wrapper
 around the comment form and replace it with a suitable HTML5 element, but
 it seems to be one of the few things one _can't_ change within the form.

 Therefore I'd like to suggest two filters added to `comment-
 template.php:2451`:

 `apply_filters( 'comment_form_opening_tag', '<div id="respond" class
 ="comment-respond">' );`

 And `comment-template.php:2643`:

 `apply_filters( 'comment_form_closing_tag', '</div>' );`

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


More information about the wp-trac mailing list