BuddyPress Activity Privacy
[resolved] Default Setting for imported activities (2 posts)

  1. spacemonkey79
    Posted 3 years ago #


    I import activities from other pages (eg facebook, twitter,..) into the WP Buddypress tables to show it in the activity stream.
    Now i need to set the default settings for those imports to "friends only" - but i canĀ“t find a location where that information is stored..

    Someone knows where (table/file) privacy setting for a activity is saved?

    Thanks for any help :)


  2. meg@info
    Plugin Author

    Posted 2 years ago #


    sorry for late, the plugin use the activity meta to store the privacy.
    You can update theme by calling bp_activity_update_meta :

    $visibility ='friends';
    bp_activity_update_meta( $activity_id, 'activity-privacy', $visibility );

    you can find the list of the privacy value in the file

    or by using this two functions to grab all privacy value

    $profile_activity_levels = bp_get_profile_activity_privacy_levels();
    $groups_activitylevels = bp_get_groups_activity_privacy_levels();

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • BuddyPress Activity Privacy
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic