• I’ve read https://developer.ww.wp.xz.cn/reference/functions/comment_type/

    But I can’t find examples on registering a custom “comment type”

    I’m making a plugin that uses a separate “comment type” so i can separate them from the regular comments, think of them like “Reviews” i believe woocommerce also uses custom comment type, for reviews…

    Could someone point me to snippets/examples on registering comment types, comment met (for that custom comment type) ?

    Thank you

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator threadi

    (@threadi)

    Unfortunately, this is not as easy as with custom post types. Here is a post that explains this a bit: https://wordpress.stackexchange.com/questions/186258/can-i-store-my-custom-comment-type-into-wp-comments-table

    Thread Starter miketopher

    (@miketopher)

    Thank you @threadi

    In that link the winning answer says “Using code above, you can safely use ‘my_custom_comment_type’ to store comments that will be not mixed up with standard comments.”

    It seems his code is regarding something else I don’t quite understand just yet, but probably will need to.

    Besides that though, I’m having trouble actually registering the comment type itself. I’m expecting that, the WP Admin UI will show in the admin menu something like “Reviews” < – being an example of the custom Comment Type name..

    From what you said, its not that easy registering custom comment types specifically “to a custom post type” and, i suppose thats fine as long as i can completely separate my “custom comments” from the regular comment system as much as possible as I’m just re-purposing the comment system for something else where the comment system happens to match my needs.

    So, any chance you can point me to registering the new comment type, where I would see something show in the admin menu?

    When I google things, i get nothing but custom post type, and things about custom comment Forms and stuff..

    Thread Starter miketopher

    (@miketopher)

    Just finding something now, it looks like there’s no “registering” a comment type, it looks like the “type” may be meta within each specific comment?

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Create a custom post type’ is closed to new replies.