WordPress.org

Ideas

Make Comments Meta Editable

  1. ZehrGut
    Member

    12345

    Hello!
    It would be nice to have opportunity to edit comment's custom fields data.
    Thanks in advance

    Posted: 3 years ago #
  2. BratP
    Member

    12345

    What kind of custom fields do you mean and what do you want to do with the custom field?

    Posted: 3 years ago #
  3. ZehrGut
    Member

    12345

    Hello!

    I mean meta data field to a comment. Fields that are used with functions:
    get_comment_meta()
    update_comment_meta(),
    add_comment_meta().

    When you are in Edit Comment form you see only Name, email, URL, Comment text.

    For example, when we edit a post we can update meta data to a post. But for comments we can't.

    Thanks!

    Posted: 3 years ago #
  4. shazdeh
    Member

    You mean this? http://wordpress.org/extend/ideas/topic/comment-form

    Posted: 3 years ago #
  5. ZehrGut
    Member

    12345

    No, this is other.

    Please take your time and read:
    http://codex.wordpress.org/Function_Reference/get_comment_meta

    I'm sorry man but you post here only to have link to your web-site?

    Posted: 3 years ago #
  6. niredo
    Member

    ZehrGut interesting idea, but it need not all. Sorry for my English, I am from Russia.

    Posted: 3 years ago #
  7. Slobodan Manic
    Member

    12345

    ZehrGut,

    I agree this could be sehr useful. Never used comment meta, so I wasn't aware of this them not being editable (makes no sense, if everything else in a comment can be edited).

    I don't have time to give it a deeper look before weekend, but quickly checking out wp-admin/edit-form-comment.php, looks like comment meta fields are not even shown, right?

    There's two do_action calls in the file, so maybe a custom function can be hooked, but I really need to try it first:

    do_action('add_meta_boxes', 'comment', $comment);
    do_action('add_meta_boxes_comment', $comment);

    (Line 130 and line 131 in edit-form-comments.php)

    Posted: 2 years ago #
  8. ZehrGut
    Member

    12345

    Hello!
    Yes, it can be done.
    Some plugins add metaboxes to comment editing form. It's not a problem. But it would be nice to have such functionality out-of-the-box. Like for posts.

    Posted: 2 years ago #
  9. Slobodan Manic
    Member

    12345

    Ah, I see. Have you tried submitting a patch for this? Or do you know if anyone else has?

    Posted: 2 years ago #
  10. ZehrGut
    Member

    12345

    Unfortunately no. I don't do coding by myself. Only small tweaking.

    Posted: 2 years ago #

RSS feed for this topic

Reply »

You must log in to post.

  • Rating

    12345
    8 Votes
  • Status

    This idea is under consideration