Make WordPress Core

Opened 5 years ago

Last modified 4 years ago

#48480 new enhancement

Add comment_form_opening_tag and comment_form_closing_tag filters

Reported by: powerbuoy's profile powerbuoy Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Comments Keywords:
Focuses: Cc:


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>' );

Change History (2)

#1 @SergeyBiryukov
5 years ago

  • Component changed from General to Comments
  • Type changed from defect (bug) to enhancement
Note: See TracTickets for help on using tickets.