Ticket #5741 (reviewing enhancement)
No Edit Comment Form Hook
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | Future Release |
| Component: | Administration | Version: | |
| Severity: | normal | Keywords: | close |
| Cc: | bbeoj |
Description
Hooks are provided to allow plugins to add custom fields to comment forms, however there is no hook to allow plugins to give admins to ability to adjust any such fields in the comment edit form.
To fix this, I added the following at line 51 of wp-admin/edit-form-comment.php (just above the advanced area of the form)
<?php do_action('edit_comment_form', $comment->comment_ID); ?>
Attachments
Change History
- Milestone changed from 2.3.3 to 2.6
DavidMeade, please leave updating the milestone to a core contributor. Please also attach a patch.
comment:3
DavidMeade — 4 years ago
ok I uploaded the changed version of wp-admin/edit-form-comment.php
Sorry about the milestone .. it was a field I was presented with to select a value for so I thought I was supposed to select a value :-P
- Keywords close added
- Type changed from defect (bug) to enhancement
- Component changed from Administration to Themes
- Milestone changed from 2.9 to Future Release
comment:5
caesarsgrunt — 3 years ago
- Component changed from Themes to Administration
This isn't to do with themes, this is for plugins to modify the admin comment editing form.
- Owner changed from anonymous to westi
- Status changed from new to reviewing
This looks like a reasonable idea.
Could you possible knock together a proof-of-concept plugin.
i.e. one that adds an extra field to the comment form, processes it and displays it here
This is to make sure we are not missing any other necessary hooks
Thanks :-)

