Creating a forum post when creating a new advertisement

Good afternoon. I use the wpForo plugin to create a forum. I would like to make functionality for the ability to automatically create a new post on the forum when adding and approving a new ad. Perhaps it will be easier to do this with another plugin for the forum. Do you have any ideas for this?

Yes, it’s possible if you use hivepress/v1/models/listing/update_status hook, it fires when the listing status is changed so you can check when a new status is “publish” and the old one is “pending”, this means that the listing is approved. Then you can perform any actions to add a forum post via the forum plugin API in the callback function that you add to a hook.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.