I am new to Buddypress. I am trying to figure out the following but there doesnt seem to be much help for the same (or I am not looking in the right direction).
I have created a 'meeting' as a custom post. I want to implement a functionality where I can include particular members in the meeting.
When I add this custom post, this should be visible as an activity update only to those users. Also, only those users should be able to view the post and if possible, update it.
I have already created
bp-custom.php in which I have added support for Buddypress for meeting by:
add_post_type_support( 'meeting', 'buddypress-activity' );
I believe this will post to the user's activity stream by default. But what about the other users that I would select?
I know there exists an API
bp_activity_add(). So, do I create a hook for 'save_post' and in the function, check if the post type is meeting, then I do a
bp_activity_add() for all the users?
But if I have already created the above (#1), wouldn't it repeat the update to the activity stream of the user who has created it?