bp_get_activity_privacy()

Return the activity privacy.

Description

Return

(string) The activity privacy.

Source

File: bp-activity/bp-activity-template.php

1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
function bp_get_activity_privacy() {
    global $activities_template;
 
    /**
     * Filters the activity privacy.
     *
     * @since BuddyBoss1.2.0
     *
     * @param string $privacy  Content body.
     * @param object $activity Activity object. Passed by reference.
     */
    return apply_filters_ref_array( 'bp_get_activity_privacy', array( $activities_template->activity->privacy, &$activities_template->activity ) );
}

Changelog

Changelog
Version Description
BuddyBoss 1.2.0 Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.