• Knowledge Base
    • All Articles
    • BuddyBoss Platform
    • BuddyBoss Theme
    • BuddyBoss App
    • Integrations
    • Advanced Setup
    • Troubleshooting
    • Release Notes
      • BuddyBoss Platform
      • BuddyBoss Platform Pro
      • BuddyBoss Theme
      • BuddyBoss App
      • BuddyBoss App Plugin
      • Other Products
  • Developers
    • Developer Tutorials
      • Web Development
      • App Development
    • Code Reference
      • Functions
      • Hooks
      • Classes
      • Methods
      • Commands
      • App Codex
    • REST API
      • BuddyBoss Platform
      • BuddyBoss App
    • Font Cheatsheet
    • Github Project
  • Roadmap
  • Go to BuddyBoss
    Contact Support
    Filter
    • Knowledge Base
      • All Articles
      • BuddyBoss Platform
      • BuddyBoss Theme
      • BuddyBoss App
      • Integrations
      • Advanced Setup
      • Troubleshooting
      • Release Notes
        • BuddyBoss Platform
        • BuddyBoss Platform Pro
        • BuddyBoss Theme
        • BuddyBoss App
        • BuddyBoss App Plugin
        • Other Products
    • Developers
      • Developer Tutorials
        • Web Development
        • App Development
      • Code Reference
        • Functions
        • Hooks
        • Classes
        • Methods
        • Commands
        • App Codex
      • REST API
        • BuddyBoss Platform
        • BuddyBoss App
      • Font Cheatsheet
      • Github Project
    • Roadmap
    • Go to BuddyBoss
    Filter
    Filter

    Contents

    • Description
    • Parameters
    • Return
    • Source
    • Related
    Code Reference Classes BP_REST_Signup_Endpoint BP_REST_Signup_Endpoint::bp_rest_xprofile_base_group_id()

    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

    (int) (Optional) xProfile field group id.

    Default value: 1

    $get_option

    (bool) (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 );
    	}
    

    Expand full source code Collapse full source code

    Related

    Uses

    Uses
    Uses Description
    bp-core/bp-core-options.php: bp_get_option()

    Retrieve an option.

    Used By
    Used By Description
    bp-members/classes/class-bp-rest-signup-endpoint.php: BP_REST_Signup_Endpoint::signup_form_items()

    Retrieve Signup Form 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.

    © 2023 • BuddyBoss