WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Default Setting for imported activities

[Resolved] Default Setting for imported activities

  • spacemonkey79
    Member

    @spacemonkey79

    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/

Viewing 1 replies (of 1 total)
  • Plugin Author meg@info
    Member

    @megainfo

    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();
Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] Default Setting for imported activities’ is closed to new replies.