BP_Media_Privacy::get_visibility_options( $is_group = false )

get options for visibility

Description

Parameters

$group

(Required)

Return

(array)

Source

File: bp-media/classes/class-bp-media-privacy.php

	function get_visibility_options( $is_group = false ){

		$options = array(
			'public'   => __( 'Everyone', 'buddyboss' ),
			'loggedin' => __( 'Logged In Users', 'buddyboss' ),
			'onlyme'   => __( 'Only Me', 'buddyboss' ),
			'friends'  => __( 'My Friends', 'buddyboss' ),
		);

		if( $is_group && bp_is_active( 'groups' ) ) {
			$options['grouponly'] = __( 'Group Members', 'buddyboss' );
		}

		return $options;
	}

Changelog

Changelog
Version Description
BuddyBoss 1.0.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.