Would it be possible to add an update to the buddypress activity stream when a new connection is made?
My guess is that you could use the bp_activity_add() function. Would I add the code into the my_connection_types() function or maybe hook a new function into the p2p_init action?
Here’s the scenario. A user earns a badge (custom post-type connected to a user) and then in the activity stream it says, “Congratulation to [user fullname], who has just earned the [badge name] badge!”
- The topic ‘Adding New Post Connection to Activity Stream’ is closed to new replies.