Hook on New Topic or Reply
-
WordPress Version: 5.2.2
BuddyPress Version: 4.4.0
bbPress Version: 2.5.14Hello, I’m looking for a hook to grab data of new topics and replies as they are added.
I was thinking this would do the trick, but it does not trigger my curl request.
add_action('groups_forum_new_topic_after', 'group_was_posted_on', 10, 2); add_action('groups_forum_new_reply_after', 'group_was_posted_on', 10, 2);
Then I tried this:
//new topic was created add_action('bp_forums_new_topic', 'group_was_posted_on', 10, 2); //new post was created to a topic add_action('bp_forums_new_post', 'group_was_posted_on', 10, 2);
Still no luck. What actions/hooks do I need to use for:
User creates a new topic
User creates a new reply to a topicThanks for your help
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- You must be logged in to reply to this topic.