WordPress.org

Forums

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

  1. spacemonkey79
    Member
    Posted 1 year ago #

    Hello,

    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 :)

    http://wordpress.org/plugins/buddypress-activity-privacy/

  2. meg@info
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    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
    plugins\buddypress-activity-privacy\includes\bp-activity-privacy-loader.php

    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