BP_REST_Signup_Endpoint::bp_rest_xprofile_base_group_id( int $defalut = 1, bool $get_option = true )
Get the group id of the base name field – from bp_xprofile_base_group_id()
Description
Parameters
- $defalut
-
(Optional) xProfile field group id.
Default value: 1
- $get_option
-
(Optional) Get from options.
Default value: true
Return
(int)
Source
File: bp-members/classes/class-bp-rest-signup-endpoint.php
protected function bp_rest_xprofile_base_group_id( $defalut = 1, $get_option = true ) { if ( is_multisite() ) { $field_id = get_site_option( 'bp-xprofile-base-group-id' ); } if ( empty( $field_id ) && $get_option ) { $field_id = bp_get_option( 'bp-xprofile-base-group-id', $defalut ); } return (int) apply_filters( 'bp_xprofile_base_group_id', $field_id ); }
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.