• I have added the ability to have additional information added with comments on my blog. But I have no way to edit this data.

    I would like to add the ability to modify the data in the edit comments form in the admin section of the dashboard. Currently I have added a function which displays the data on the edit comment page, but I can not figure out how to make it part of the edit comment form.

    Can someone point me to a way to add this data to the edit comment form?

Viewing 1 replies (of 1 total)
  • Thread Starter stoi2m1

    (@stoi2m1)

    So I found a comment hook that used to exist back in WP 2.5

    This hook was add_action(‘submitcomment_box’, ‘some_function’)
    At some point it was removed from WP.

    So in the mean time I have added the do_action(‘submitcomment_box’) function back into my edit_form_comment.php file. This allows my plugin to work with my install of WP 2.9 but with a hacked core.

    I see that WP 2.9 has meta boxes and there is a comment hook which looks like this do_meta_boxes(‘comment’, ‘normal’, $comment).

    How do I hook to that? I have tried add_meta_boxes(‘comment’, ‘my_function’) in my plugin but I get an error which says the add_meta_boxes() function doesn’t exist.

    Can anyone point me in the right direction for solving this without hacking the core?

Viewing 1 replies (of 1 total)
  • The topic ‘How to Add Content to the Core with a Plugin’ is closed to new replies.