[wp-trac] [WordPress Trac] #26395: New comment_form_after_textarea action.

WordPress Trac noreply at wordpress.org
Sun Mar 2 18:55:30 UTC 2014


#26395: New comment_form_after_textarea action.
-------------------------+------------------------------
 Reporter:  pross        |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Comments     |     Version:  3.7
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:
-------------------------+------------------------------

Comment (by SergeyBiryukov):

 Related: #27080

 You can use `comment_form_defaults` filter to prepend your text to
 `$args['comment_notes_after']`:
 {{{
 function comment_form_after_comment_26395( $defaults ) {
         $defaults['comment_notes_after'] = '<p>your content</p>' .
 $defaults['comment_notes_after'];
         return $defaults;
 }
 add_filter( 'comment_form_defaults', 'comment_form_after_comment_26395' );
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/26395#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list