Notifications
Clear all

How can I identify the author after replying to any topic?

3 Posts
2 Users
0 Reactions
244 Views
Posts: 6
Topic starter
(@forumspxy)
Active Member
Joined: 7 months ago

Hi everyone,
User named A creates a topic. Then the user named B writes something on this topic. Here, the userid value can be accessed using the wpforo_post_approve hook.
However, this userid value may also belong to the topic owner. So, to user named A.
How do I distinguish this? Is there anyone to help?

Topic Tags
2 Replies
Sofy
Posts: 4900
 Sofy
Admin
(@sofy)
Support Team
Joined: 7 years ago

Hi,

By utilizing the hook, you'll have access to the complete $post array, allowing you to view details such as the user ID of the topic creator.

Furthermore, we provide paid plugin customization and PRO support services. For assistance, please reach out to our team here:

Reply
Posts: 6
Topic starter
(@forumspxy)
Active Member
Joined: 7 months ago

Thank you for your answer. The content of the $post array is as follows. Which one here is the ID of the user who created the topic. The userid key indicates the user who replied to the topic.
Image

Reply