[wp-trac] [WordPress Trac] #25674: Custom Comment Types - register_comment_type

WordPress Trac noreply at wordpress.org
Thu Oct 24 21:45:41 UTC 2013


#25674: Custom Comment Types - register_comment_type
-----------------------------+------------------------------
 Reporter:  sc0ttkclark      |       Owner:
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Comments         |     Version:
 Severity:  normal           |  Resolution:
 Keywords:                   |
-----------------------------+------------------------------

Comment (by greenshady):

 Replying to [comment:6 GaryJ]:
 > For those who have only just been introduced to the idea, can you please
 give some examples of what different types of custom comments there could
 be / what circumstances in which they might be used?

 A fairly common one might be something like a "tweetback", which would be
 Twitter tweets mentioning a blog post.  Basically, a plugin could register
 this comment type, set up appropriate labels, and even add a separate
 admin screen for managing tweetbacks.

 Some reasons for being able to register the comment type are:

 * Standardized way for handling custom comment types.
 * Ability to more easily do different admin "stuff" with these comment
 types.
 * Easier theme integration.

 On the last point, I'm most interested in this.  Suppose I wanted to
 separate all comment types via jQuery tabs on a single post view in my
 theme.  This is easily done right now.  However, I have no way to grab the
 translated "Tweetback(s)" label to properly identify what type of comments
 go under that tab.

 There are many other things you could do, but I just pulled that example
 out since it's usually the easiest for most people to understand.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/25674#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list