Contents
bp_enable_private_network( bool $default = false )
Enable private network for site owner.
Description
Parameters
- $default
-
(Optional) Fallback value if not found in the database. Default: true.
Default value: false
Return
(bool) True if private network for site is enabled, otherwise false.
Source
File: bp-core/bp-core-options.php
function bp_enable_private_network( $default = false ) { /** * 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', (bool) bp_get_option( 'bp-enable-private-network', $default ) ); }
Changelog
Version | Description |
---|---|
BuddyBoss 1.0.0 | Introduced. |
Related
Uses
Uses | Description |
---|---|
bp-core/bp-core-options.php: bp_enable_private_network |
Filters whether private network for site is enabled. |
bp-core/bp-core-options.php: bp_get_option() |
Retrieve an option. |
Used By | Description |
---|---|
bp-document/classes/class-bp-rest-document-folder-endpoint.php: BP_REST_Document_Folder_Endpoint::get_items_permissions_check() |
Checks if a given request has access to get all users. |
bp-document/classes/class-bp-rest-document-folder-endpoint.php: BP_REST_Document_Folder_Endpoint::get_item_permissions_check() |
Checks if a given request has access to get all users. |
bp-document/classes/class-bp-rest-document-endpoint.php: BP_REST_Document_Endpoint::get_items_permissions_check() |
Checks if a given request has access to get all users. |
bp-document/classes/class-bp-rest-document-endpoint.php: BP_REST_Document_Endpoint::get_item_permissions_check() |
Checks if a given request has access to get all users. |
bp-xprofile/classes/class-bp-rest-xprofile-types-endpoint.php: BP_REST_XProfile_Types_Endpoint::get_items_permissions_check() |
Check if a given request has access to XProfile Types. |
bp-xprofile/classes/class-bp-rest-xprofile-fields-endpoint.php: BP_REST_XProfile_Fields_Endpoint::get_items_permissions_check() |
Check if a given request has access to XProfile fields. |
bp-xprofile/classes/class-bp-rest-xprofile-fields-endpoint.php: BP_REST_XProfile_Fields_Endpoint::get_item_permissions_check() |
Check if a given request has access to get information about a specific XProfile field. |
bp-xprofile/classes/class-bp-rest-xprofile-data-endpoint.php: BP_REST_XProfile_Data_Endpoint::get_item_permissions_check() |
Check if a given request has access to get users’s data. |
bp-xprofile/classes/class-bp-rest-xprofile-field-groups-endpoint.php: BP_REST_XProfile_Field_Groups_Endpoint::get_items_permissions_check() |
Check if a given request has access to XProfile field groups items. |
bp-members/classes/class-bp-rest-members-details-endpoint.php: BP_REST_Members_Details_Endpoint::get_item_permissions_check() |
Checks if a given request has access to get all users. |
bp-members/classes/class-bp-rest-members-endpoint.php: BP_REST_Members_Endpoint::get_items_permissions_check() |
Checks if a given request has access to get all users. |
bp-members/classes/class-bp-rest-members-endpoint.php: BP_REST_Members_Endpoint::get_item_permissions_check() |
Checks if a given request has access to read a user. |
bp-members/classes/class-bp-rest-attachments-member-avatar-endpoint.php: BP_REST_Attachments_Member_Avatar_Endpoint::get_item_permissions_check() |
Checks if a given request has access to get a member avatar. |
bp-members/classes/class-bp-rest-attachments-member-cover-endpoint.php: BP_REST_Attachments_Member_Cover_Endpoint::get_item_permissions_check() |
Checks if a given request has access to get a user cover. |
bp-media/classes/class-bp-rest-media-endpoint.php: BP_REST_Media_Endpoint::get_items_permissions_check() |
Checks if a given request has access to get all users. |
bp-media/classes/class-bp-rest-media-endpoint.php: BP_REST_Media_Endpoint::get_item_permissions_check() |
Checks if a given request has access to get all users. |
bp-media/classes/class-bp-rest-media-albums-endpoint.php: BP_REST_Media_Albums_Endpoint::get_items_permissions_check() |
Checks if a given request has access to get all users. |
bp-media/classes/class-bp-rest-media-albums-endpoint.php: BP_REST_Media_Albums_Endpoint::get_item_permissions_check() |
Checks if a given request has access to get all users. |
bp-groups/classes/class-bp-rest-groups-types-endpoint.php: BP_REST_Groups_Types_Endpoint::get_items_permissions_check() |
Check if a given request has access to Groups Types. |
bp-groups/classes/class-bp-rest-groups-details-endpoint.php: BP_REST_Groups_Details_Endpoint::get_item_permissions_check() |
Check if a given request has access to group details. |
bp-groups/classes/class-bp-rest-groups-endpoint.php: BP_REST_Groups_Endpoint::get_items_permissions_check() |
Check if a given request has access to group items. |
bp-groups/classes/class-bp-rest-groups-endpoint.php: BP_REST_Groups_Endpoint::get_item_permissions_check() |
Check if a given request has access to get information about a specific group. |
bp-groups/classes/class-bp-rest-attachments-group-avatar-endpoint.php: BP_REST_Attachments_Group_Avatar_Endpoint::get_item_permissions_check() |
Checks if a given request has access to get a group avatar. |
bp-groups/classes/class-bp-rest-attachments-group-cover-endpoint.php: BP_REST_Attachments_Group_Cover_Endpoint::get_item_permissions_check() |
Checks if a given request has access to get a group cover. |
bp-forums/classes/class-bp-rest-topics-endpoint.php: BP_REST_Topics_Endpoint::get_items_permissions_check() |
Check if a given request has access to list topics. |
bp-forums/classes/class-bp-rest-topics-endpoint.php: BP_REST_Topics_Endpoint::get_item_permissions_check() |
Check if a given request has access to list topic. |
bp-forums/classes/class-bp-rest-reply-endpoint.php: BP_REST_Reply_Endpoint::get_items_permissions_check() |
Check if a given request has access to list replies. |
bp-forums/classes/class-bp-rest-reply-endpoint.php: BP_REST_Reply_Endpoint::get_item_permissions_check() |
Check if a given request has access to list reply. |
bp-forums/classes/class-bp-rest-forums-endpoint.php: BP_REST_Forums_Endpoint::get_items_permissions_check() |
Check if a given request has access to list forums. |
bp-forums/classes/class-bp-rest-forums-endpoint.php: BP_REST_Forums_Endpoint::get_item_permissions_check() |
Check if a given request has access to list forum. |
bp-core/classes/class-bp-rest-settings-endpoint.php: BP_REST_Settings_Endpoint::get_buddyboss_platform_settings() |
Get BuddyBoss Platform Settings. |
bp-activity/classes/class-bp-rest-activity-comment-endpoint.php: BP_REST_Activity_Comment_Endpoint::get_items_permissions_check() |
Check if a given request has access to activity comment. |
bp-activity/classes/class-bp-rest-activity-endpoint.php: BP_REST_Activity_Endpoint::get_items_permissions_check() |
Check if a given request has access to activity items. |
bp-activity/classes/class-bp-rest-activity-endpoint.php: BP_REST_Activity_Endpoint::get_item_permissions_check() |
Check if a given request has access to get information about a specific activity. |
bp-core/admin/settings/bp-admin-setting-general.php: BP_Admin_Setting_General::register_fields() | |
bp-core/admin/bp-core-admin-settings.php: bp_admin_setting_callback_private_network() |
Allow admin to make the site private network. |
bp-core/bp-core-catchuri.php: bp_remove_wc_lostpassword_url() |
Returns the url to the lost password. |
bp-core/bp-core-catchuri.php: bp_core_change_privacy_policy_link_on_private_network() |
Change the Privacy Policy link if private network is enabled. |
bp-core/bp-core-catchuri.php: bp_private_network_template_redirect() |
Redirects users to login page if Private Network is enabled in BuddyBoss settings. |
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.