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 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);

本文标签: custom post typesWhat39s the best way to do this inquiryticket system