admin管理员组文章数量:1388225
I am working on a plugin and I want to create a system for WooCommerce users to make inquiries, and then allow a conversation, negotiation, etc.
I am thinking to create a custom post type "inquiry" and enable comments on it, add a form for the user to create such a post type, and make these posts only visible to admin and the user that created them. And admin and user could communicate via comments.
What do you think? any better ideas?
I am working on a plugin and I want to create a system for WooCommerce users to make inquiries, and then allow a conversation, negotiation, etc.
I am thinking to create a custom post type "inquiry" and enable comments on it, add a form for the user to create such a post type, and make these posts only visible to admin and the user that created them. And admin and user could communicate via comments.
What do you think? any better ideas?
Share Improve this question asked Mar 28, 2020 at 17:45 Stefan SStefan S 192 bronze badges1 Answer
Reset to default 0I solved this by creating a custom post type "conversation" with several post meta
Post meta: number of messages
Post meta: message_1
Post meta: message_1_author
Post meta: message_1_timeline
When displaying a conversation I check against "number of messages"
for (i=1; i<=nr_messages; i++){
show_message(i);
本文标签: custom post typesWhat39s the best way to do this inquiryticket system
版权声明:本文标题:custom post types - What's the best way to do this: inquiryticket system? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744547501a2611983.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论