Opened 12 years ago
Closed 10 years ago
#26395 closed enhancement (wontfix)
New comment_form_after_textarea action.
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | normal | Version: | |
| Component: | Comments | Keywords: | has-patch |
| Focuses: | Cc: |
Description
Adding a new action into comment_form() to make it easier to add simple captcha above the submit button.
Attachments (1)
Change History (7)
This ticket was mentioned in IRC in #wordpress-dev by aubreypwd. View the logs.
12 years ago
#5
@
10 years ago
- Keywords close added
- Version 3.7 deleted
In addition to the comment_form_defaults filter mentioned by @SergeyBiryukov, there is also 2 actions for users that aren't logged in:
do_action( 'comment_form_before_fields' );
do_action( 'comment_form_after_fields' );
Recommending this request be closed as a wontfix.
Note: See
TracTickets for help on using
tickets.
Related: #27080
You can use
comment_form_defaultsfilter 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' );