最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

custom post types - What's the best way to do this: inquiryticket system?

programmeradmin4浏览0评论

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 badges
Add a comment  | 

1 Answer 1

Reset to default 0

I 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);
发布评论

评论列表(0)

  1. 暂无评论