Opened 3 days ago
Last modified 3 days ago
#48480 new enhancement
Add comment_form_opening_tag and comment_form_closing_tag filters
Reported by: | powerbuoy | Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | |
Component: | Comments | Keywords: | |
Focuses: | Cc: | ||
PR Number: |
Description
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 (1)
Note: See
TracTickets for help on using
tickets.