BP_REST_Account_Settings_Options_Endpoint::get_invites_fields()
Get Fields for the Invites “Group Invites”.
Description
- From: ‘members/single/settings/group-invites’
Return
(array|mixed|void)
Source
File: bp-settings/classes/class-bp-rest-account-settings-options-endpoint.php
public function get_invites_fields() { $fields = array( array( 'name' => 'account-group-invites-preferences', 'label' => __( 'Restrict Group invites to members who are connected.', 'buddyboss' ), 'field' => 'checkbox', 'value' => bp_nouveau_groups_get_group_invites_setting( bp_loggedin_user_id() ), 'options' => array(), 'group_label' => '', ), ); $fields = apply_filters( 'bp_rest_account_settings_invites', $fields ); return $fields; }
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.