AI Search
Classic Search
 Search Phrase:
 Search Type:
Advanced search options
 Search in Forums:
 Search in date period:

 Sort Search Results by:

AI Assistant
Notifications
Clear all

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

3 Posts
2 Users
0 Reactions
916 Views
Posts: 6
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@forumspxy)
Active Member
Joined: 2 years ago
[#56490]

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: 5777
 Sofy
Admin
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@sofy)
Support Team
Joined: 8 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
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@forumspxy)
Active Member
Joined: 2 years 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
Share: