Opened 13 years ago
Closed 11 years ago
#26395 closed enhancement (wontfix)
New comment_form_after_textarea action.
| Reported by: | pross | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Comments | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
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
@
11 years ago
- Keywords close added
- Version 3.7
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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' );