[wp-trac] [WordPress Trac] #27080: Missing action 'comment_form_after_comment'
WordPress Trac
noreply at wordpress.org
Sun Feb 9 21:49:52 UTC 2014
#27080: Missing action 'comment_form_after_comment'
-------------------------+------------------------------
Reporter: bjoerne | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Comments | Version: 3.8.1
Severity: normal | Resolution:
Keywords: | Focuses: template
-------------------------+------------------------------
Changes (by TobiasBg):
* focuses: => template
* type: feature request => enhancement
Old description:
> It's nice to have action hooks for the comment form like
> '''comment_form_after_fields''' or '''comment_form'''. But I miss an
> action '''comment_form_after_comment''' which is called between the
> comment field note and the submit button. Like this:
>
> {{{
> <?php echo
> $args['comment_notes_after']; ?>
> <?php do_action(
> 'comment_form_after_comment' ); ?>
> <p class="form-submit">
> <input
> name="submit" type="submit" id="<?php echo esc_attr( $args['id_submit']
> ); ?>" value="<?php echo esc_attr( $args['label_submit'] ); ?>" />
> <?php
> comment_id_fields( $post_id ); ?>
> </p>
>
> }}}
New description:
It's nice to have action hooks for the comment form like
`comment_form_after_fields` or `comment_form`. But I miss an action
`comment_form_after_comment` which is called between the comment field
note and the submit button. Like this:
{{{
<?php echo $args['comment_notes_after']; ?>
<?php do_action( 'comment_form_after_comment' ); ?>
<p class="form-submit">
<input name="submit" type="submit" id="<?php echo esc_attr(
$args['id_submit'] ); ?>" value="<?php echo esc_attr(
$args['label_submit'] ); ?>" />
<?php comment_id_fields( $post_id ); ?>
</p>
}}}
--
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27080#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list