You can hook it using the “do_meta_boxes” hook
add_action('do_meta_boxes', 'asd', 'comment');
I got the following to do what I needed:
add_filter('the_editor', 'my_function');
Your function will be passed the HTML code for the on-page comment editor. You’ll need to be sure to return that code, otherwise your editor will disappear. Look in /wp-includes/general-template.php for more.
Sample code:
function my_function($html) {
$output = $html;
$output .= ...your html code if applicable
...or do whatever you need
return $output;
}
(@gdragon)
17 years, 7 months ago
I have noticed that WP 2.7 doesn’t have some actions anymore. I have been using action ‘submitcomment_box’ to add fields on comment edit page, but this action is not included in WP 2.7. Is there a way to expand comment edit form in WP 2.7? Is there a new action for that to replace ‘submitcomment_box’?
Is there a detailed list of this action changes at all?
I am all for changes, but removing feature and not offering replacement is not good development policy.
Regards,
Milan