[wp-trac] [WordPress Trac] #35214: Custom Comment Types
WordPress Trac
noreply at wordpress.org
Tue Jan 7 23:20:55 UTC 2020
#35214: Custom Comment Types
-------------------------------------+-------------------------------------
Reporter: aaroncampbell | Owner: (none)
Type: task (blessed) | Status: assigned
Priority: normal | Milestone: Future Release
Component: Comments | Version:
Severity: normal | Resolution:
Keywords: needs-patch has- | Focuses: ui, administration,
screenshots | template
-------------------------------------+-------------------------------------
Changes (by imath):
* keywords: needs-patch => needs-patch has-screenshots
Comment:
Hi !
Thanks a lot for everyone's work on this ticket so far. I've been looking
deeply into it lately and started organizing a patch (from a local
branch). I understood reading the description of this ticket and some
comments, there are some huge challenges to accomplish and the road might
be long (that's probably the reason a plugin has been considered and
inited).
Here are my first suggestions about a possible road.
1) First I though about the semantics and came to the conclusion
"Comments" should probably not be the name of the Admin Menu and step by
step I feel we should think of a name that means "All possible
informations/interactions in return of a post". I'm not english so I might
have made a wrong choice, but I chose "Feedbacks". I believe this word
allows types like :
- comments (text feedbacks),
- pings (automatic link notification feedbacks)
- trackbacks (manual link notification feedbacks)
- reactions (emoji like feedbacks)
- annotations (Gutenberg's project post content collaboration feedbacks),
- likes, reviews etc...
2) Then I thought about the Admin UI. I believe moving it into submenus of
post types is not a good idea as existing feedbacks (comments, pings,
trackbacks) can possibly relate to any post types. So it could add a lot
of sub menus and we'd need to possibly overheat the feedback/comment
queries to filter according to the post type. So I think a possible way of
keeping it simple is to use an horizontal navigation. I took some
inspirations from the Site Health Administration screen and here's how it
could look like :
[[Image(https://cldup.com/2SJ4Dp1Yz8.png)]]
As you can see, I think in this case it's important to detail the comments
count (or the feedbacks count) according to the type within this
horizontal navigation.
3) I've started building some `register_feedback_type()`,
`create_initial_feedback_types()`, `get_feedback_type_object()`,
`get_feedback_type_labels()` etc.. functions and a `WP_Feedback_Type`
class borrows heavily from the Post Types API.
There's still a lot of work to do before I can share a patch on this
ticket. I thought before carrying on working on it, it would be wiser to
have your opinions about these suggestions. So thanks in advance for your
''feedbacks'' 😉
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35214#comment:27>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list