bp_enable_private_network_public_content( string $default = '' )

Add URL OR URI which will ignore even if private network is enabled.

Description

Parameters

$default

(Optional) Fallback value if not found in the database. Default: Empty string.

Default value: ''

Return

(string) Private network's public content.

Source

File: bp-core/bp-core-options.php

function bp_enable_private_network_public_content( $default = '' ) {

	/**
	 * Filters whether or not members are able to delete their own accounts.
	 *
	 * @since BuddyBoss 1.0.0
	 *
	 * @param bool $value Whether site owner uses private network.
	 */
	return apply_filters( 'bp_enable_private_network_public_content', bp_get_option( 'bp-enable-private-network-public-content', '' ) );
}

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.